|
@@ -464,7 +464,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
|
|
if value is None:
|
|
if value is None:
|
|
variables = sorted(self.__variables) if variable is None else [variable]
|
|
variables = sorted(self.__variables) if variable is None else [variable]
|
|
|
|
|
|
- cursor.execute('select ' + ', '.join(map(lambda variable: "'%s'" % ('*' * 8) if variable == 'secret' else 'latitude.granularity, latitude.authorized' if variable == 'latitude' else variable, variables)) + ' from locationbot.nick join locationbot.latitude using (id) where nick = %s', (login,))
|
|
|
|
|
|
+ cursor.execute('select ' + ', '.join(map(lambda variable: "'%s'" % ('*' * 8) if variable == 'secret' else 'latitude.granularity, latitude.authorized' if variable == 'latitude' else variable, variables)) + ' from locationbot.nick left join locationbot.latitude using (id) where nick = %s', (login,))
|
|
|
|
|
|
values = list(cursor.fetchone())
|
|
values = list(cursor.fetchone())
|
|
|
|
|
|
@@ -854,7 +854,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
|
|
else:
|
|
else:
|
|
aux = ''
|
|
aux = ''
|
|
|
|
|
|
- self.connection.privmsg(channel, '%s is in %s%s %s' % (nick, location, aux, self.__url(nick, granularity, location, coordinates)))
|
|
|
|
|
|
+ self.connection.notice(channel, '%s is in %s%s %s' % (nick, location, aux, self.__url(nick, granularity, location, coordinates)))
|
|
|
|
|
|
self.__locations = []
|
|
self.__locations = []
|
|
|
|
|