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: