Fix the doubling of commands when supybot.defaultIgnore is true and a user is identified

This commit is contained in:
Terence Simpson
2009-11-07 08:50:16 +00:00
parent 31c41dac21
commit f96f9c5bc3
3 changed files with 6 additions and 16 deletions

View File

@ -257,9 +257,8 @@ class Mess(callbacks.PluginRegexp):
if checkIgnored(msg.prefix):
return msg
try:
id = ircdb.users.getUserId(msg.prefix)
user = users.getUser(id)
return msg
if ircdb.users.getUser(msg.prefix):
return msg
except:
pass
cmd, args = (s.split(None, 1) + [None])[:2]