summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rwxr-xr-xminiircd8
2 files changed, 3 insertions, 7 deletions
diff --git a/TODO b/TODO
index 5fe4f2a..a645b73 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1 @@
* Use optparse.
-
-* Don't use a set in client.messageChannel.
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()