Skip to content

Instantly share code, notes, and snippets.

@raws
Created March 19, 2010 17:45
Show Gist options
  • Save raws/337943 to your computer and use it in GitHub Desktop.
Save raws/337943 to your computer and use it in GitHub Desktop.
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