mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Alias: Allow interrogation mark.
This commit is contained in:
parent
d78ae3de7b
commit
81ce98656f
@ -317,11 +317,12 @@ class Alias(callbacks.Plugin):
|
||||
irc.error(_('There is no such alias.'))
|
||||
unlock = wrap(unlock, [('checkCapability', 'admin'), 'commandName'])
|
||||
|
||||
_validNameRe = re.compile(r'^[a-z.|!][a-z0-9.|!]*$')
|
||||
_validNameRe = re.compile(r'^[a-z.|!?][a-z0-9.|!]*$')
|
||||
def addAlias(self, irc, name, alias, lock=False):
|
||||
if not self._validNameRe.search(name):
|
||||
raise AliasError('Names can only contain alphanumerical '
|
||||
'characters, dots, pipes, and exclamation marks '
|
||||
'characters, dots, pipes, and '
|
||||
'exclamation/interrogatin marks '
|
||||
'(and the first character cannot be a number).')
|
||||
realName = callbacks.canonicalName(name)
|
||||
if name != realName:
|
||||
|
Loading…
Reference in New Issue
Block a user