Fixed uncaught exception on messages with just spaces.

This commit is contained in:
Jeremy Fincher 2004-01-14 03:29:05 +00:00
parent 82249961a3
commit fe0e5e9c43
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,9 @@ class ChannelDB(plugins.ChannelDBHandler,
except KeyError:
return
(channel, s) = msg.args
s = s.strip()
if not s:
return
db = self.getDb(channel)
cursor = db.cursor()
words = s.lower().split()