mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Added some (now commented out) debugging printfs.
This commit is contained in:
parent
35d0a3cb22
commit
b8e3396d6b
@ -244,16 +244,20 @@ class IrcObjectProxy:
|
||||
try:
|
||||
if callback is not None:
|
||||
anticap = ircdb.makeAntiCapability(name)
|
||||
#debug.printf('Checking for %s' % anticap)
|
||||
if ircdb.checkCapability(self.msg.prefix, anticap):
|
||||
#debug.printf('Being prevented with anticap')
|
||||
debug.msg('Preventing %s from calling %s' % \
|
||||
(self.msg.nick, name))
|
||||
(self.msg.nick, name), 'normal')
|
||||
return
|
||||
recipient = self.msg.args[0]
|
||||
if ircutils.isChannel(recipient):
|
||||
chancap = ircdb.makeChannelCapability(recipient, anticap)
|
||||
#debug.printf('Checking for %s' % chancap)
|
||||
if ircdb.checkCapability(self.msg.prefix, chancap):
|
||||
#debug.printf('Being prevented with chancap')
|
||||
debug.msg('Preventing %s from calling %s' % \
|
||||
(self.msg.nick, name))
|
||||
(self.msg.nick, name), 'normal')
|
||||
return
|
||||
command = getattr(callback, name)
|
||||
callback.callCommand(command, self, self.msg, self.args)
|
||||
|
Loading…
Reference in New Issue
Block a user