mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Added 'channel' command since we can now have commands with the same name as a plugin. This is useful for configuring ChannelValues.
This commit is contained in:
parent
3234af10e7
commit
8b780ecc81
@ -161,6 +161,19 @@ class Config(callbacks.Privmsg):
|
||||
else:
|
||||
self._get(irc, msg, args)
|
||||
|
||||
def channel(self, irc, msg, args):
|
||||
"""[<channel>] <name> [<value>]
|
||||
|
||||
If <value> is given, sets the channel configuration variable for <name>
|
||||
to <value> for <channel>. Otherwise, returns the current channel
|
||||
configuration value of <name>. <channel> is only necessary if the
|
||||
message isn't sent in the channel itself."""
|
||||
channel = privmsgs.getChannel(msg, args)
|
||||
components = registry.split(args[0])
|
||||
components.append(channel)
|
||||
args[0] = registry.join(components)
|
||||
self.config(irc, msg, args)
|
||||
|
||||
def _get(self, irc, msg, args):
|
||||
"""<name>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user