mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fixed uncaught exception on messages with just spaces.
This commit is contained in:
parent
82249961a3
commit
fe0e5e9c43
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user