mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fixed behavior for actions.
This commit is contained in:
parent
3ddc088764
commit
96e79c2b2d
@ -86,7 +86,10 @@ class Markov(callbacks.Privmsg, ChannelDBHandler):
|
|||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
db = self.getDb(channel)
|
db = self.getDb(channel)
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
words = msg.args[1].split()
|
if ircmsgs.isAction(msg):
|
||||||
|
words = ircmsgs.unAction(msg).split()
|
||||||
|
else:
|
||||||
|
words = msg.args[1].split()
|
||||||
isFirst = True
|
isFirst = True
|
||||||
for (first, second, follower) in window(words, 3):
|
for (first, second, follower) in window(words, 3):
|
||||||
if isFirst:
|
if isFirst:
|
||||||
|
Loading…
Reference in New Issue
Block a user