From 54e0c07a9ce67464dc552e1550983d5400b144ce Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 25 Mar 2003 06:49:58 +0000 Subject: [PATCH] Added module docstring and removed nslookup/host as aliases for dns --- plugins/ThreadedFunCommands.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/ThreadedFunCommands.py b/plugins/ThreadedFunCommands.py index 1f3bacba7..85d862fd8 100644 --- a/plugins/ThreadedFunCommands.py +++ b/plugins/ThreadedFunCommands.py @@ -29,6 +29,13 @@ # POSSIBILITY OF SUCH DAMAGE. ### +""" +Provides fun/useless commands that require threads. + +Commands include: + dns +""" + from baseplugin import * import socket @@ -39,7 +46,7 @@ import callbacks class ThreadedFunCommands(callbacks.Privmsg): threaded = True - def nslookup(self, irc, msg, args): + def dns(self, irc, msg, args): "" host = privmsgs.getArgs(args) if ircutils.isIP(host): @@ -55,9 +62,6 @@ class ThreadedFunCommands(callbacks.Privmsg): except socket.error: irc.error(msg, 'Host not found.') - host = nslookup - dns = nslookup - Class = ThreadedFunCommands # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: