mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Added an author command.
This commit is contained in:
parent
daaf146a1b
commit
cd3039317d
@ -34,6 +34,7 @@ Allows aliases for other commands.
|
||||
"""
|
||||
|
||||
__revision__ = "$Id$"
|
||||
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
|
||||
|
||||
import plugins
|
||||
|
||||
|
@ -34,6 +34,7 @@ Logs each channel to its own individual logfile.
|
||||
"""
|
||||
|
||||
__revision__ = "$Id$"
|
||||
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
|
||||
|
||||
import plugins
|
||||
|
||||
|
@ -37,6 +37,7 @@ empty channel in order to get ops.
|
||||
"""
|
||||
|
||||
__revision__ = "$Id$"
|
||||
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
|
||||
|
||||
import plugins
|
||||
|
||||
|
@ -34,6 +34,7 @@ Handles relaying between networks.
|
||||
"""
|
||||
|
||||
__revision__ = "$Id$"
|
||||
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
|
||||
|
||||
import plugins
|
||||
|
||||
|
@ -35,6 +35,7 @@ or repeatedly run at a particular interval.
|
||||
"""
|
||||
|
||||
__revision__ = "$Id$"
|
||||
__author__ = 'Jeremy Fincher (jemfinch) <jemfinch@users.sf.net>'
|
||||
|
||||
import plugins
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -51,6 +51,7 @@ Add the module docstring here. This will be used by the setup.py script.
|
||||
"""
|
||||
|
||||
__revision__ = "$%s$"
|
||||
__author__ = ''
|
||||
|
||||
import plugins
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
20
src/Misc.py
20
src/Misc.py
@ -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>]
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user