|
@@ -88,9 +88,9 @@ class LocationBot(ircbot.SingleServerIRCBot):
|
|
|
|
|
|
commands = [
|
|
|
('help', '', 'show this help message'),
|
|
|
- ('login', 'user secret', 'login as user with secret'),
|
|
|
- ('register', 'user secret', 'register as user with secret'),
|
|
|
- ('status', '[user]', 'show where everybody or a user is'),
|
|
|
+ ('login', '[nick] secret', 'login as nick with secret'),
|
|
|
+ ('register', '[nick] secret', 'register as nick with secret'),
|
|
|
+ ('status', '[nick]', 'show where everybody or a nick is'),
|
|
|
]
|
|
|
|
|
|
if True:
|
|
@@ -203,9 +203,9 @@ class LocationBot(ircbot.SingleServerIRCBot):
|
|
|
|
|
|
if self.__locations_lock.acquire(False):
|
|
|
if self.__locations and sorted(self.__channels) == sorted(self.channels.keys()):
|
|
|
- for user, location in self.__locations:
|
|
|
+ for nick, location in self.__locations:
|
|
|
for channel in self.__channels:
|
|
|
- self.connection.notice(channel, '%s is in %s' % (user, location))
|
|
|
+ self.connection.notice(channel, '%s is in %s' % (nick, location))
|
|
|
|
|
|
self.__locations = []
|
|
|
|