From 83a5d04624c2a93937727ca8c7e31b360c337f9c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 14 May 2011 00:22:46 -0400 Subject: [PATCH] nicer syntax --- irc/commands/chanops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/irc/commands/chanops.py b/irc/commands/chanops.py index 0d4382b..e7b4683 100644 --- a/irc/commands/chanops.py +++ b/irc/commands/chanops.py @@ -14,8 +14,7 @@ class ChanOps(BaseCommand): return "%s users in the channel." % action def check(self, data): - if data.is_command and (data.command == "voice" or data.command == "devoice" - or data.command == "op" or data.command == "deop"): + if data.is_command and data.command in ["voice", "devoice", "op", "deop"]: return True return False