clean up unicode decoding a bit

This commit is contained in:
mutantmonkey
2011-11-16 17:28:14 -05:00
parent d5a614d530
commit a5c76f3f60
2 changed files with 10 additions and 12 deletions

2
bot.py
View File

@@ -198,7 +198,7 @@ class Phenny(irc.Bot):
self.error(origin)
def limit(self, origin, func):
if origin.sender and origin.sender.startswith(b'#'):
if origin.sender and origin.sender.startswith('#'):
if hasattr(self.config, 'limit'):
limits = self.config.limit.get(origin.sender)
if limits and (func.__module__ not in limits):