h/plugins/profile.py

14 lines
318 B
Python
Raw Normal View History

2009-04-29 03:29:27 +00:00
# for crusty old rotor
from util import hook
2009-04-29 03:29:27 +00:00
@hook.command
def profile(inp):
".profile <username> -- links to <username>'s profile on SA"
if not inp:
return profile.__doc__
2009-04-29 03:29:27 +00:00
return 'http://forums.somethingawful.com/member.php?action=getinfo' + \
'&username=' + '+'.join(inp.split())