Minor fixes, and important .commands fix, to be private only.

This commit is contained in:
Sean B. Palmer
2008-03-07 21:33:00 +00:00
parent 16ec61f4d6
commit 989ea13d02
5 changed files with 14 additions and 5 deletions

View File

@@ -131,12 +131,11 @@ def wikipedia(term, last=False):
def wik(phenny, input):
origterm = input.groups()[1]
if not origterm:
return phenny.say('Perhaps you meant ".wik Zen"?')
origterm = origterm.encode('utf-8')
term = urllib.unquote(origterm)
if not term:
return phenny.say(origin.sender, 'Maybe you meant ".wik Zen"?')
term = term[0].upper() + term[1:]
term = term.replace(' ', '_')