Added needed import and change debug.printfs to debug.debugMsg.

This commit is contained in:
Jeremy Fincher 2003-04-03 08:29:21 +00:00
parent ea11c0ea5f
commit 36f7c77132

View File

@ -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.