From 81ce98656f5d7ac2dba35336a05a71efc7baeb94 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 25 Aug 2013 15:41:56 +0200 Subject: [PATCH] Alias: Allow interrogation mark. --- plugins/Alias/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Alias/plugin.py b/plugins/Alias/plugin.py index 6d68fba16..f614dd1e7 100644 --- a/plugins/Alias/plugin.py +++ b/plugins/Alias/plugin.py @@ -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: