From d160b2a9cc8b72ca1775a9d0e300e3f137c64e17 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 18 Jul 2011 19:29:26 +0200 Subject: tracking: Use 'add' as an alias for 'start'. --- modules/tracking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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) -- cgit v1.2.3