mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-30 15:31:09 -05:00
Fix for attributeError I ran into, as well as a premature commit of a name change (but since it's just a name change, I'm fine with it).
This commit is contained in:
parent
2db0cd197c
commit
26bb2335f3
@ -457,7 +457,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
elif self.db.hasAre(key):
|
elif self.db.hasAre(key):
|
||||||
isAre = 'are'
|
isAre = 'are'
|
||||||
value = self.db.getAre(key)
|
value = self.db.getAre(key)
|
||||||
except dbi.InvalidDBError:
|
except dbi.InvalidDBError, e:
|
||||||
self._error('Unable to access db: %s' % e)
|
self._error('Unable to access db: %s' % e)
|
||||||
return
|
return
|
||||||
if isAre is None:
|
if isAre is None:
|
||||||
@ -559,11 +559,12 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self.badForce = False
|
self.badForce = False
|
||||||
self.addressed = False
|
self.addressed = False
|
||||||
|
|
||||||
def callCommand(self, f, irc, msg, *L, **kwargs):
|
def callCommand(self, name, irc, msg, *L, **kwargs):
|
||||||
|
#print '***', name, utils.stackTrace()
|
||||||
try:
|
try:
|
||||||
self.irc = irc
|
self.irc = irc
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
super(Infobot, self).callCommand(f, irc, msg, *L, **kwargs)
|
super(Infobot, self).callCommand(name, irc, msg, *L, **kwargs)
|
||||||
finally:
|
finally:
|
||||||
self.irc = None
|
self.irc = None
|
||||||
self.msg = None
|
self.msg = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user