Created
March 19, 2010 17:45
-
-
Save raws/337943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Wheaties | |
module Commands | |
module Channel | |
def on_join | |
channel = response.args.first | |
if response.sender.nick == connection.nick | |
broadcast(:who, channel) | |
log(:info, "Joined", channel) | |
end | |
end | |
# RPL_WHOREPLY | |
def on_352 | |
channel = response.args.first | |
user = User.new(response) | |
connection.channel(channel) << user | |
end | |
# RPL_ENDOFWHO | |
def on_315 | |
channel = response.args.first | |
log(:debug, connection.channel(channel).inspect) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment