mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added a sanity guard to finalEval and changed a debug.printf to a debug.msg.
This commit is contained in:
parent
8f2766b5ce
commit
15c115d028
@ -284,6 +284,8 @@ class IrcObjectProxy:
|
|||||||
self.finalEval()
|
self.finalEval()
|
||||||
|
|
||||||
def finalEval(self):
|
def finalEval(self):
|
||||||
|
if self.finalEvaled:
|
||||||
|
raise ValueError, 'finalEval called twice. Odd.'
|
||||||
self.finalEvaled = True
|
self.finalEvaled = True
|
||||||
originalName = self.args.pop(0)
|
originalName = self.args.pop(0)
|
||||||
name = canonicalName(originalName)
|
name = canonicalName(originalName)
|
||||||
@ -510,7 +512,7 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
if s:
|
if s:
|
||||||
recipient = msg.args[0]
|
recipient = msg.args[0]
|
||||||
if ircdb.checkIgnored(msg.prefix, recipient):
|
if ircdb.checkIgnored(msg.prefix, recipient):
|
||||||
debug.printf('Privmsg.doPrivmsg: ignoring %s.' % msg.prefix)
|
debug.msg('Privmsg.doPrivmsg: ignoring %s.' % msg.prefix)
|
||||||
return
|
return
|
||||||
m = self._r.match(s)
|
m = self._r.match(s)
|
||||||
if m and self.isCommand(canonicalName(m.group(1))):
|
if m and self.isCommand(canonicalName(m.group(1))):
|
||||||
|
Loading…
Reference in New Issue
Block a user