mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 09:29:24 +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)
|
mThread = self._ggThread.search(text)
|
||||||
mGroup = self._ggGroup.search(text)
|
mGroup = self._ggGroup.search(text)
|
||||||
if mThread and mGroup:
|
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))))
|
'Google Groups: %s, %s' % (mGroup.group(1), mThread.group(1))))
|
||||||
else:
|
else:
|
||||||
irc.queueMsg(ircmsgs.privmsg(msg.args[0],
|
irc.queueMsg(ircmsgs.privmsg(msg.args[0],
|
||||||
|
@ -218,7 +218,7 @@ class Moobot(callbacks.Privmsg):
|
|||||||
elif someone in ('yourself', 'you', irc.nick):
|
elif someone in ('yourself', 'you', irc.nick):
|
||||||
someone = 'himself'
|
someone = 'himself'
|
||||||
response = 'gives %s %s' % (someone, something)
|
response = 'gives %s %s' % (someone, something)
|
||||||
irc.queueMsg(ircmsgs.action(ircutils.reply(msg), response))
|
irc.queueMsg(ircmsgs.action(ircutils.replyTo(msg), response))
|
||||||
|
|
||||||
|
|
||||||
Class = Moobot
|
Class = Moobot
|
||||||
|
@ -167,7 +167,7 @@ def safeArgument(s):
|
|||||||
else:
|
else:
|
||||||
return repr(s)
|
return repr(s)
|
||||||
|
|
||||||
def reply(msg):
|
def replyTo(msg):
|
||||||
if isChannel(msg.args[0]):
|
if isChannel(msg.args[0]):
|
||||||
return msg.args[0]
|
return msg.args[0]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user