Status: Add network command

This command is same as server, except that it will return the
network, not the server the bot is on.
This commit is contained in:
nyuszika7h 2012-02-18 19:30:13 +08:00 committed by Valentin Lorentz
parent 123c176637
commit 8e4090ff96

View File

@ -223,6 +223,15 @@ class Status(callbacks.Plugin):
irc.reply(irc.server) irc.reply(irc.server)
server = wrap(server) server = wrap(server)
@internationalizeDocstring
def network(self, irc, msg, args):
"""takes no arguments
Returns the network the bot is on.
"""
irc.reply(irc.network)
network = wrap(network)
Class = Status Class = Status