Added module docstrings and changed argument order of osuemail.

This commit is contained in:
Jeremy Fincher 2003-08-23 13:05:41 +00:00
parent 5b2cc92917
commit 5536e2181d

View File

@ -30,7 +30,8 @@
### ###
""" """
Add the module docstring here. This will be used by the setup.py script. Commands specific to OSU;
(The Ohio State University, <http://www.ohio-state.edu/>)
""" """
from baseplugin import * from baseplugin import *
@ -53,8 +54,8 @@ def configure(onStart, afterConnect, advanced):
class OSU(callbacks.Privmsg): class OSU(callbacks.Privmsg):
threaded = True threaded = True
def osuemail(self, irc, msg, args): def osuemail(self, irc, msg, args):
"""<first name>.<middle initial>.<last name>""" """<first name> <middle initial> <last name>"""
s = ''.join(args) s = '.'.join(args)
url = 'http://www.ohio-state.edu/cgi-bin/inquiry2.cgi?keyword=%s' % s url = 'http://www.ohio-state.edu/cgi-bin/inquiry2.cgi?keyword=%s' % s
try: try:
fd = urllib2.urlopen(url) fd = urllib2.urlopen(url)