Minor fixes, full stop stripping of tell nicknames &c.

This commit is contained in:
Sean B. Palmer
2008-08-09 16:01:20 +01:00
parent 86c2f274d5
commit 31d107c0bd
6 changed files with 22 additions and 11 deletions

View File

@@ -135,8 +135,12 @@ def f_title(self, origin, match, args):
return unichr(char).encode('utf-8')
title = r_entity.sub(e, title)
if not title:
title = '[Title is the empty document, "".]'
if title:
try: title.decode('iso-8859-1')
except: pass
else: title = title.decode('iso-8859-1').encode('utf-8')
else: title = '[The title is empty.]'
self.msg(origin.sender, origin.nick + ': ' + title)
else: self.msg(origin.sender, origin.nick + ': No title found')
f_title.commands = ['title']