Removed/commented out some debug.printfs.

This commit is contained in:
Jeremy Fincher 2003-10-12 12:42:43 +00:00
parent 697b7d511e
commit 9eff6d997e
4 changed files with 6 additions and 8 deletions

View File

@ -438,7 +438,6 @@ class IrcObjectProxy:
private = self.private or not ircutils.isChannel(msg.args[0])
Privmsg._mores[msg.nick] = (private, msgs)
if self.private:
debug.printf('got here!')
self.irc.queueMsg(ircmsgs.privmsg(msg.nick, response))
else:
self.irc.queueMsg(reply(msg, response, self.prefixName))

View File

@ -608,7 +608,7 @@ def checkCapability(hostmask, capability, users=users, channels=channels):
try:
u = users.getUser(hostmask)
if u.secure and not u.checkHostmask(hostmask, useAuth=False):
debug.printf('Secure user with non-matching hostmask.')
#debug.printf('Secure user with non-matching hostmask.')
raise KeyError
except KeyError:
# Raised when no hostmasks match.

View File

@ -532,6 +532,7 @@ class Irc(object):
self.outstandingPing = False
# Send new nicks on 433
if msg.command == '433' or msg.command == '432':
#debug.printf('In irclib.Irc 433 handler.')
self.sendMsg(ircmsgs.nick(self._nickmods.pop(0) % self.nick))
if msg.nick == self.nick:
self.prefix = msg.prefix
@ -550,8 +551,6 @@ class Irc(object):
if msg.command in self._nickSetters:
#debug.printf('msg.command in self._nickSetters')
newnick = msg.args[0]
if self.nick != newnick:
debug.printf('Hmm...self.nick != newnick. Odd.')
self.nick = newnick
# Now update the IrcState object.
try:

View File

@ -100,14 +100,14 @@ class SupyReconnectingFactory(ReconnectingClientFactory):
class MyShell(Shell):
def checkUserAndPass(self, username, password):
debug.printf(repr(username))
debug.printf(repr(password))
#debug.printf(repr(username))
#debug.printf(repr(password))
try:
id = ircdb.users.getUserId(username)
u = ircdb.users.getUser(id)
debug.printf(u)
#debug.printf(u)
if u.checkPassword(password) and u.checkCapability('owner'):
debug.printf('returning True')
#debug.printf('returning True')
return True
else:
return False