mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added module docstrings and changed argument order of osuemail.
This commit is contained in:
parent
5b2cc92917
commit
5536e2181d
@ -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 *
|
||||
@ -53,8 +54,8 @@ def configure(onStart, afterConnect, advanced):
|
||||
class OSU(callbacks.Privmsg):
|
||||
threaded = True
|
||||
def osuemail(self, irc, msg, args):
|
||||
"""<first name>.<middle initial>.<last name>"""
|
||||
s = ''.join(args)
|
||||
"""<first name> <middle initial> <last name>"""
|
||||
s = '.'.join(args)
|
||||
url = 'http://www.ohio-state.edu/cgi-bin/inquiry2.cgi?keyword=%s' % s
|
||||
try:
|
||||
fd = urllib2.urlopen(url)
|
||||
|
Loading…
Reference in New Issue
Block a user