Skip to content

Commit

Permalink
Simplify the arguments to RPL_NAMEREPLY() in circuits.protocols.irc.r…
Browse files Browse the repository at this point in the history
…eplies
  • Loading branch information
prologic committed Aug 23, 2015
1 parent ae99323 commit 31ffed0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions circuits/protocols/irc/replies.py
@@ -1,9 +1,6 @@
"""Internet Relay Chat Protocol replies"""


from operator import attrgetter


from .message import Message


Expand Down Expand Up @@ -56,10 +53,8 @@ def RPL_NOTOPIC(channel):
return _M("331", channel, "No topic is set")


def RPL_NAMEREPLY(channel):
prefix = "="
nicks = " ".join(map(attrgetter("nick"), channel.users))
return _M("353", prefix, channel.name, nicks)
def RPL_NAMEREPLY(channel, names):
return _M("353", "=", channel, " ".join(names))


def RPL_ENDOFNAMES():
Expand Down

0 comments on commit 31ffed0

Please sign in to comment.