Fixed behavior for actions.

This commit is contained in:
Jeremy Fincher 2003-04-11 21:04:34 +00:00
parent 3ddc088764
commit 96e79c2b2d

View File

@ -86,7 +86,10 @@ class Markov(callbacks.Privmsg, ChannelDBHandler):
channel = msg.args[0]
db = self.getDb(channel)
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
for (first, second, follower) in window(words, 3):
if isFirst: