Seen: don't track seen data for stuff without a location

like the last commit, this happens on [subcommands]
This commit is contained in:
Brian S. Stephan 2011-06-16 21:26:13 -05:00
parent df3de56c4c
commit c7b7e6e3ad
1 changed files with 7 additions and 5 deletions

View File

@ -81,6 +81,8 @@ class Seen(Module):
# whatever it is, store it # whatever it is, store it
try: try:
# if there's no where, this is probably a sub-command. don't learn it
if where:
db = self.get_db() db = self.get_db()
cur = db.cursor() cur = db.cursor()
statement = 'REPLACE INTO seen_nicks (nick, location, host, what) VALUES (?, ?, ?, ?)' statement = 'REPLACE INTO seen_nicks (nick, location, host, what) VALUES (?, ?, ?, ?)'