Added an author command.

This commit is contained in:
Jeremy Fincher 2004-04-28 06:30:55 +00:00
parent daaf146a1b
commit cd3039317d
13 changed files with 32 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Allows aliases for other commands.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import plugins

View File

@ -34,6 +34,7 @@ Logs each channel to its own individual logfile.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import plugins

View File

@ -37,6 +37,7 @@ empty channel in order to get ops.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import plugins

View File

@ -34,6 +34,7 @@ Handles relaying between networks.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import plugins

View File

@ -35,6 +35,7 @@ or repeatedly run at a particular interval.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import plugins

View File

@ -34,6 +34,7 @@ Various utility commands, mostly useful for manipulating nested commands.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import plugins

View File

@ -51,6 +51,7 @@ Add the module docstring here. This will be used by the setup.py script.
"""
__revision__ = "$%s$"
__author__ = ''
import plugins

View File

@ -35,6 +35,7 @@ caller to have the 'admin' capability. This plugin is loaded by default.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import fix

View File

@ -35,6 +35,7 @@ to have the <channel>.op capability. This plugin is loaded by default.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import fix

View File

@ -34,6 +34,7 @@ Handles configuration of the bot while it's running.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import getopt

View File

@ -34,6 +34,7 @@ Miscellaneous commands.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import fix
@ -337,6 +338,25 @@ class Misc(callbacks.Privmsg):
else:
irc.error('There is no such command %s' % command)
def author(self, irc, msg, args):
"""<plugin>
Returns the author of <plugin>. This is the person you should talk to
if you have ideas, suggestions, or other comments about a given plugin.
"""
plugin = privmsgs.getArgs(args)
cb = irc.getCallback(plugin)
if cb is None:
irc.error('That plugin does not seem to be loaded.')
return
module = sys.modules[cb.__class__.__module__]
if hasattr(module, '__author__') and module.__author__:
s = module.__author__.replace('@', ' AT ')
s = s.replace('.', ' DOT ')
irc.reply(s)
else:
irc.reply('That plugin doesn\'t have an author that claims it.')
def more(self, irc, msg, args):
"""[<nick>]

View File

@ -35,6 +35,7 @@ their caller to have the 'owner' capability. This plugin is loaded by default.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import fix

View File

@ -34,6 +34,7 @@ Provides commands useful to users in general. This plugin is loaded by default.
"""
__revision__ = "$Id$"
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
import fix