mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Changed ircutils.reply to ircutils.replyTo
This commit is contained in:
parent
20032a089a
commit
40b8eb3956
@ -68,7 +68,7 @@ class Forums(callbacks.PrivmsgRegexp):
|
||||
mThread = self._ggThread.search(text)
|
||||
mGroup = self._ggGroup.search(text)
|
||||
if mThread and mGroup:
|
||||
irc.queueMsg(ircmsgs.privmsg(ircutils.reply(msg),
|
||||
irc.queueMsg(ircmsgs.privmsg(ircutils.replyTo(msg),
|
||||
'Google Groups: %s, %s' % (mGroup.group(1), mThread.group(1))))
|
||||
else:
|
||||
irc.queueMsg(ircmsgs.privmsg(msg.args[0],
|
||||
|
@ -218,7 +218,7 @@ class Moobot(callbacks.Privmsg):
|
||||
elif someone in ('yourself', 'you', irc.nick):
|
||||
someone = 'himself'
|
||||
response = 'gives %s %s' % (someone, something)
|
||||
irc.queueMsg(ircmsgs.action(ircutils.reply(msg), response))
|
||||
irc.queueMsg(ircmsgs.action(ircutils.replyTo(msg), response))
|
||||
|
||||
|
||||
Class = Moobot
|
||||
|
@ -167,7 +167,7 @@ def safeArgument(s):
|
||||
else:
|
||||
return repr(s)
|
||||
|
||||
def reply(msg):
|
||||
def replyTo(msg):
|
||||
if isChannel(msg.args[0]):
|
||||
return msg.args[0]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user