Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meeting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meeting.py b/meeting.py
index 9ecce97..c9f86be 100644
--- a/meeting.py
+++ b/meeting.py
@@ -64,7 +64,7 @@ class Config(object):
UrlProtocols = ('http:', 'https:', 'irc:', 'ftp:', 'mailto:', 'ssh:')
# regular expression for parsing commands. First group is the cmd name,
# second group is the rest of the line.
- command_RE = re.compile(r'#([\w]+)[ \t]*(.*)')
+ command_RE = re.compile(r'#([\w-]+)[ \t]*(.*)')
# The channels which won't have date/time appended to the filename.
specialChannels = ("#meetbot-test", "#meetbot-test2")
# HTML irc log highlighting style. `pygmentize -L styles` to list.
@@ -480,7 +480,7 @@ class Meeting(MeetingCommands, object):
matchobj = self.config.command_RE.match(line)
if matchobj is not None:
command, line = matchobj.groups()
- command = command.lower()
+ command = ''.join([i for i in command.lower() if i != '-'])
# to define new commands, define a method do_commandname .
if hasattr(self, "do_"+command):
getattr(self, "do_"+command)(nick=nick, line=line,