summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2003-12-11 18:37:43 +0000
committerJoel Rosdahl <joel@rosdahl.net>2011-08-21 15:53:50 +0200
commit16b4fab01c9f10af300c33e8156510f05bb22739 (patch)
tree01adcff09e8d07f78c77fbe25cebf22435bee109 /miniircd
parent6acf640ae32bdad55f1a044a20866cb696e3cce7 (diff)
downloadminiircd-16b4fab01c9f10af300c33e8156510f05bb22739.tar.gz
miniircd-16b4fab01c9f10af300c33e8156510f05bb22739.zip
Remove unnecessary use of sets.Set in Client.messageChannel
Diffstat (limited to 'miniircd')
-rwxr-xr-xminiircd8
1 files changed, 3 insertions, 5 deletions
diff --git a/miniircd b/miniircd
index 9e4ea64..b580e39 100755
--- a/miniircd
+++ b/miniircd
@@ -606,11 +606,9 @@ class Client(object):
self.__writebuffer += msg + "\r\n"
def messageChannel(self, channel, line, includeSelf=False):
- targets = sets.Set(channel.members)
- if not includeSelf:
- targets.discard(self)
- for client in targets:
- client.message(line)
+ for client in channel.members:
+ if client != self or includeSelf:
+ client.message(line)
def messageRelated(self, msg, includeSelf=False):
clients = sets.Set()