mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Alias: Fix encoding issue.
This commit is contained in:
parent
8bfea88e3f
commit
a678bfc0d2
@ -29,6 +29,7 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
import types
|
import types
|
||||||
|
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
@ -215,6 +216,8 @@ def makeNewAlias(name, alias):
|
|||||||
flexargs = ''
|
flexargs = ''
|
||||||
if biggestDollar and (wildcard or biggestAt):
|
if biggestDollar and (wildcard or biggestAt):
|
||||||
flexargs = _(' at least')
|
flexargs = _(' at least')
|
||||||
|
if sys.version_info[0] == 2:
|
||||||
|
alias = alias.decode('utf8')
|
||||||
doc =format(_('<an alias,%s %n>\n\nAlias for %q.'),
|
doc =format(_('<an alias,%s %n>\n\nAlias for %q.'),
|
||||||
flexargs, (biggestDollar, _('argument')), alias)
|
flexargs, (biggestDollar, _('argument')), alias)
|
||||||
f = utils.python.changeFunctionName(f, name, doc)
|
f = utils.python.changeFunctionName(f, name, doc)
|
||||||
|
Loading…
Reference in New Issue
Block a user