Added a sanity guard to finalEval and changed a debug.printf to a debug.msg.

This commit is contained in:
Jeremy Fincher 2003-09-06 01:07:08 +00:00
parent 8f2766b5ce
commit 15c115d028

View File

@ -284,6 +284,8 @@ class IrcObjectProxy:
self.finalEval()
def finalEval(self):
if self.finalEvaled:
raise ValueError, 'finalEval called twice. Odd.'
self.finalEvaled = True
originalName = self.args.pop(0)
name = canonicalName(originalName)
@ -510,7 +512,7 @@ class Privmsg(irclib.IrcCallback):
if s:
recipient = msg.args[0]
if ircdb.checkIgnored(msg.prefix, recipient):
debug.printf('Privmsg.doPrivmsg: ignoring %s.' % msg.prefix)
debug.msg('Privmsg.doPrivmsg: ignoring %s.' % msg.prefix)
return
m = self._r.match(s)
if m and self.isCommand(canonicalName(m.group(1))):