Browse Source

Left join! And use notices again.

Douglas William Thrift 13 years ago
parent
commit
7c54d73df9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      locationbot.py

+ 2 - 2
locationbot.py

@@ -464,7 +464,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
 		if value is None:
 			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())
 
@@ -854,7 +854,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
 						else:
 							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 = []