mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-09 02:54:13 +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:
|
except KeyError:
|
||||||
return
|
return
|
||||||
(channel, s) = msg.args
|
(channel, s) = msg.args
|
||||||
|
s = s.strip()
|
||||||
|
if not s:
|
||||||
|
return
|
||||||
db = self.getDb(channel)
|
db = self.getDb(channel)
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
words = s.lower().split()
|
words = s.lower().split()
|
||||||
|
Loading…
Reference in New Issue
Block a user