mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Forgot to prepend something to the tell.
This commit is contained in:
parent
4f248a0e03
commit
b4f7b878cf
@ -207,7 +207,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
else:
|
else:
|
||||||
self.reply(self.registryValue('boringDunno'), irc=irc, msg=msg)
|
self.reply(self.registryValue('boringDunno'), irc=irc, msg=msg)
|
||||||
|
|
||||||
def factoid(self, key, irc=None, msg=None, dunno=True):
|
def factoid(self, key, irc=None, msg=None, dunno=True, prepend=''):
|
||||||
if irc is None:
|
if irc is None:
|
||||||
assert self.irc is not None
|
assert self.irc is not None
|
||||||
irc = self.irc
|
irc = self.irc
|
||||||
@ -236,8 +236,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self.reply(value[8:].strip(),
|
self.reply(value[8:].strip(),
|
||||||
irc=irc, msg=msg, action=True)
|
irc=irc, msg=msg, action=True)
|
||||||
else:
|
else:
|
||||||
self.reply('%s %s %s, $who.' % (key,isAre,value),
|
s = '%s %s %s, $who' % (key, isAre, value)
|
||||||
irc=irc, msg=msg)
|
s = prepend + s
|
||||||
|
self.reply(s, irc=irc, msg=msg)
|
||||||
|
|
||||||
def normalize(self, s):
|
def normalize(self, s):
|
||||||
s = ircutils.stripFormatting(s)
|
s = ircutils.stripFormatting(s)
|
||||||
@ -392,7 +393,8 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
return
|
return
|
||||||
newmsg = ircmsgs.privmsg(irc.nick, factoid+'?', prefix=hostmask)
|
newmsg = ircmsgs.privmsg(irc.nick, factoid+'?', prefix=hostmask)
|
||||||
try:
|
try:
|
||||||
self.factoid(factoid, msg=newmsg)
|
prepend = '%s wants you to know that ' % msg.nick
|
||||||
|
self.factoid(factoid, msg=newmsg, prepend=prepend)
|
||||||
except Dunno:
|
except Dunno:
|
||||||
self.dunno()
|
self.dunno()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user