mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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 *
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user