Added a driver command.

This commit is contained in:
Jeremy Fincher 2005-01-10 04:58:40 +00:00
parent ff8379b7b4
commit 2c60643954
1 changed files with 9 additions and 0 deletions

View File

@ -275,6 +275,15 @@ class Network(callbacks.Privmsg):
irc.noReply()
latency = wrap(latency, ['networkIrc'])
def driver(self, irc, msg, args, otherIrc):
"""[<network>]
Returns the current network driver for <network>. <network> is only
necessary if the message isn't sent on the network to which this
command is to apply.
"""
irc.reply(otherIrc.driver.__class__.__module__[8:])
Class = Network