Tweaked plugins/suggest.py and plugins/slogan.py
This commit is contained in:
parent
2755e8b978
commit
6161164c5f
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
from util import hook, http, misc
|
from util import hook, http, misc
|
||||||
import re
|
import re
|
||||||
|
import string
|
||||||
|
|
||||||
def sloganize(word):
|
def sloganize(word):
|
||||||
bytes = http.get('http://www.sloganizer.net/en/outbound.php', slogan=word)
|
bytes = http.get('http://www.sloganizer.net/en/outbound.php', slogan=word)
|
||||||
|
@ -12,4 +13,8 @@ def sloganizr(inp, nick=None, say=None, input=None):
|
||||||
|
|
||||||
slogan = misc.strip_html(slogan)
|
slogan = misc.strip_html(slogan)
|
||||||
|
|
||||||
|
if inp.islower():
|
||||||
|
slogan = slogan.capitalize()
|
||||||
|
|
||||||
return slogan
|
return slogan
|
||||||
|
|
||||||
|
|
Reference in a new issue