From 96e79c2b2df416f46e2958de65064d0cbadca57e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 11 Apr 2003 21:04:34 +0000 Subject: [PATCH] Fixed behavior for actions. --- plugins/Markov.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Markov.py b/plugins/Markov.py index 5e0b397ae..6b8da739a 100644 --- a/plugins/Markov.py +++ b/plugins/Markov.py @@ -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: