mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added needed import and change debug.printfs to debug.debugMsg.
This commit is contained in:
parent
ea11c0ea5f
commit
36f7c77132
@ -37,6 +37,7 @@ import atexit
|
|||||||
import string
|
import string
|
||||||
|
|
||||||
import conf
|
import conf
|
||||||
|
import debug
|
||||||
import world
|
import world
|
||||||
import ircutils
|
import ircutils
|
||||||
|
|
||||||
@ -425,7 +426,7 @@ def checkCapability(hostmask, capability, users=users, channels=channels):
|
|||||||
try:
|
try:
|
||||||
(channel, capability) = fromChannelCapability(capability)
|
(channel, capability) = fromChannelCapability(capability)
|
||||||
except ValueError: # unpack list of wrong size
|
except ValueError: # unpack list of wrong size
|
||||||
debug.printf('Invalid channel capability in checkCapability')
|
debug.debugMsg('Invalid channel capability in checkCapability')
|
||||||
return False # stupid, invalid capability.
|
return False # stupid, invalid capability.
|
||||||
# Now, go fetch the channel and check to see what it thinks about
|
# Now, go fetch the channel and check to see what it thinks about
|
||||||
# said capability.
|
# said capability.
|
||||||
@ -456,7 +457,7 @@ def checkCapability(hostmask, capability, users=users, channels=channels):
|
|||||||
try:
|
try:
|
||||||
(channel, capability) = fromChannelCapability(capability)
|
(channel, capability) = fromChannelCapability(capability)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
debug.printf('Invalid channel capability in checkCapability')
|
debug.debugMsg('Invalid channel capability in checkCapability')
|
||||||
return False # stupid, invalid capability.
|
return False # stupid, invalid capability.
|
||||||
c = channels.getChannel(channel)
|
c = channels.getChannel(channel)
|
||||||
# And return the channel's opinion.
|
# And return the channel's opinion.
|
||||||
|
Loading…
Reference in New Issue
Block a user