mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Elucidating comment, etc.
This commit is contained in:
parent
cb9986f0ac
commit
56ba5edcc9
@ -61,6 +61,9 @@ conf.registerChannelValue(conf.supybot.plugins.Channel, 'alwaysRejoin',
|
|||||||
registry.Boolean(True, """Determines whether the bot will always try to
|
registry.Boolean(True, """Determines whether the bot will always try to
|
||||||
rejoin a channel whenever it's kicked from the channel."""))
|
rejoin a channel whenever it's kicked from the channel."""))
|
||||||
|
|
||||||
|
# XXX We need a lot of noReply calls in here; otherwise, we should add a
|
||||||
|
# wrapper of some sort to handle that for us. Perhaps we can abstract out
|
||||||
|
# the very repetitive commands.wrap calls in here while we're at it.
|
||||||
class Channel(callbacks.Privmsg):
|
class Channel(callbacks.Privmsg):
|
||||||
def doKick(self, irc, msg):
|
def doKick(self, irc, msg):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
@ -253,9 +256,10 @@ class Channel(callbacks.Privmsg):
|
|||||||
key = None
|
key = None
|
||||||
irc.queueMsg(ircmsgs.part(channel))
|
irc.queueMsg(ircmsgs.part(channel))
|
||||||
irc.queueMsg(ircmsgs.join(channel, key))
|
irc.queueMsg(ircmsgs.join(channel, key))
|
||||||
|
irc.noReply()
|
||||||
cycle = commands.wrap(cycle, ['channel',
|
cycle = commands.wrap(cycle, ['channel',
|
||||||
('checkChannelCapability', 'op'),
|
('checkChannelCapability', 'op'),
|
||||||
'anything'])
|
'?anything'])
|
||||||
|
|
||||||
def kick(self, irc, msg, args, channel, nick, reason):
|
def kick(self, irc, msg, args, channel, nick, reason):
|
||||||
"""[<channel>] <nick> [<reason>]
|
"""[<channel>] <nick> [<reason>]
|
||||||
@ -276,6 +280,7 @@ class Channel(callbacks.Privmsg):
|
|||||||
'length for a KICK reason on this server.')
|
'length for a KICK reason on this server.')
|
||||||
return
|
return
|
||||||
irc.queueMsg(ircmsgs.kick(channel, nick, reason))
|
irc.queueMsg(ircmsgs.kick(channel, nick, reason))
|
||||||
|
irc.noReply()
|
||||||
kick = commands.wrap(kick, ['channel',
|
kick = commands.wrap(kick, ['channel',
|
||||||
('checkChannelCapability', 'op'),
|
('checkChannelCapability', 'op'),
|
||||||
('haveOp', 'kick someone'),
|
('haveOp', 'kick someone'),
|
||||||
|
Loading…
Reference in New Issue
Block a user