mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-04 08:34:11 +01:00
Removed/commented out some debug.printfs.
This commit is contained in:
parent
697b7d511e
commit
9eff6d997e
@ -438,7 +438,6 @@ class IrcObjectProxy:
|
|||||||
private = self.private or not ircutils.isChannel(msg.args[0])
|
private = self.private or not ircutils.isChannel(msg.args[0])
|
||||||
Privmsg._mores[msg.nick] = (private, msgs)
|
Privmsg._mores[msg.nick] = (private, msgs)
|
||||||
if self.private:
|
if self.private:
|
||||||
debug.printf('got here!')
|
|
||||||
self.irc.queueMsg(ircmsgs.privmsg(msg.nick, response))
|
self.irc.queueMsg(ircmsgs.privmsg(msg.nick, response))
|
||||||
else:
|
else:
|
||||||
self.irc.queueMsg(reply(msg, response, self.prefixName))
|
self.irc.queueMsg(reply(msg, response, self.prefixName))
|
||||||
|
@ -608,7 +608,7 @@ def checkCapability(hostmask, capability, users=users, channels=channels):
|
|||||||
try:
|
try:
|
||||||
u = users.getUser(hostmask)
|
u = users.getUser(hostmask)
|
||||||
if u.secure and not u.checkHostmask(hostmask, useAuth=False):
|
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
|
raise KeyError
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# Raised when no hostmasks match.
|
# Raised when no hostmasks match.
|
||||||
|
@ -532,6 +532,7 @@ class Irc(object):
|
|||||||
self.outstandingPing = False
|
self.outstandingPing = False
|
||||||
# Send new nicks on 433
|
# Send new nicks on 433
|
||||||
if msg.command == '433' or msg.command == '432':
|
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))
|
self.sendMsg(ircmsgs.nick(self._nickmods.pop(0) % self.nick))
|
||||||
if msg.nick == self.nick:
|
if msg.nick == self.nick:
|
||||||
self.prefix = msg.prefix
|
self.prefix = msg.prefix
|
||||||
@ -550,8 +551,6 @@ class Irc(object):
|
|||||||
if msg.command in self._nickSetters:
|
if msg.command in self._nickSetters:
|
||||||
#debug.printf('msg.command in self._nickSetters')
|
#debug.printf('msg.command in self._nickSetters')
|
||||||
newnick = msg.args[0]
|
newnick = msg.args[0]
|
||||||
if self.nick != newnick:
|
|
||||||
debug.printf('Hmm...self.nick != newnick. Odd.')
|
|
||||||
self.nick = newnick
|
self.nick = newnick
|
||||||
# Now update the IrcState object.
|
# Now update the IrcState object.
|
||||||
try:
|
try:
|
||||||
|
@ -100,14 +100,14 @@ class SupyReconnectingFactory(ReconnectingClientFactory):
|
|||||||
|
|
||||||
class MyShell(Shell):
|
class MyShell(Shell):
|
||||||
def checkUserAndPass(self, username, password):
|
def checkUserAndPass(self, username, password):
|
||||||
debug.printf(repr(username))
|
#debug.printf(repr(username))
|
||||||
debug.printf(repr(password))
|
#debug.printf(repr(password))
|
||||||
try:
|
try:
|
||||||
id = ircdb.users.getUserId(username)
|
id = ircdb.users.getUserId(username)
|
||||||
u = ircdb.users.getUser(id)
|
u = ircdb.users.getUser(id)
|
||||||
debug.printf(u)
|
#debug.printf(u)
|
||||||
if u.checkPassword(password) and u.checkCapability('owner'):
|
if u.checkPassword(password) and u.checkCapability('owner'):
|
||||||
debug.printf('returning True')
|
#debug.printf('returning True')
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user