Fixed bug where it doesn't respond to non-registered users.

This commit is contained in:
Jeremy Fincher 2003-09-08 08:32:06 +00:00
parent 6aa3e06402
commit 7ed17912d2

View File

@ -143,7 +143,7 @@ class Notes(callbacks.Privmsg):
try:
name = ircdb.users.getUserName(msg.prefix)
except KeyError:
return
callbacks.Privmsg.doPrivmsg(self, irc, msg)
cursor = self.db.cursor()
cursor.execute("""SELECT COUNT(*) FROM notes, users
WHERE users.name=%s AND