diff --git a/ChangeLog b/ChangeLog index 6e2411f46..a073e3a01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ + * Added Channel.mode, to set the mode in the channel. + * Added a new plugin, Format, which offers several commands for formatting strings on IRC. Moved several commands from to it from the Utilities plugin. diff --git a/src/Channel.py b/src/Channel.py index 6dc12dc5c..96bd86405 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -65,6 +65,16 @@ class Channel(callbacks.Privmsg): if self.registryValue('alwaysRejoin', channel): irc.sendMsg(ircmsgs.join(channel)) # Fix for keys. + def mode(self, irc, msg, args, channel): + """[] [ ...] + + Sets the mode in to , sending the arguments given. + """ + if not args: + raise callbacks.ArgumentError + irc.queueMsg(ircmsgs.mode(channel, args)) + mode = privmsgs.checkChannelCapability(mode, 'op') + def op(self, irc, msg, args, channel): """[] [ ...]