summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-07-18 19:29:26 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-07-18 19:29:26 +0200
commitd160b2a9cc8b72ca1775a9d0e300e3f137c64e17 (patch)
treed61515438a4070b6c9e78847c5066ff93c655728 /modules
parent0474c899d1ab1f136d598efc4b0b25005d7a1234 (diff)
tracking: Use 'add' as an alias for 'start'.
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index 6724867..b00e9fe 100644
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -247,11 +247,11 @@ class Module:
return
mode = args[0]
- if mode.lower() in ('start', 'stop', 'status'):
+ if mode.lower() in ('start', 'add', 'stop', 'status'):
if len(args) < 2 and mode.lower() != 'status':
self.irc.msg(channel if not channel == self.irc.nickname else nick.split('!')[0], usage)
return
- if mode.lower() == 'start':
+ if mode.lower() in ('start', 'add'):
code = args[1]
label = ' '.join(args[2:]) if len(args) > 2 else ''
else:
@@ -264,7 +264,7 @@ class Module:
label = ' '.join(args[2:])
msg = None
- if mode.lower() == 'start':
+ if mode.lower() in ('start', 'add'):
msg = self.track_start(code, label, nick.split('!')[0], channel if not channel == self.irc.nickname else None)
elif mode.lower() == 'stop':
msg = self.track_stop(code, nick.split('!')[0], channel if not channel == self.irc.nickname else None)