From 8f8a97261d513829f35eec85dea79cd80559d342 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 15 Sep 2004 19:31:53 +0000 Subject: [PATCH] bad logic --- plugins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/__init__.py b/plugins/__init__.py index 6cb16dfb0..2e42709e1 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -423,7 +423,7 @@ def standardSubstitute(irc, msg, text, env=None): L = list(irc.state.channels[channel].users) if len(L) > 1: n = msg.nick - while n != msg.nick: + while n == msg.nick: n = random.choice(L) return n else: