Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for Issue #123, "User.channels returns an empty array" #124

Closed
wants to merge 1 commit into from

2 participants

@tiegs

This is the pull request for my Fix for Issue #123

@dominikh
Owner

Merged as d844d80. Thank you very much.

@dominikh dominikh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 14, 2013
  1. @tiegs
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cinch/irc.rb
View
4 lib/cinch/irc.rb
@@ -638,8 +638,8 @@ def on_318(msg, events)
def on_319(msg, events)
# RPL_WHOISCHANNELS
user = User(msg.params[1])
- channels = msg.params[2].scan(/#{@isupport["CHANTYPES"].join}[^ ]+/o).map {|c| Channel(c) }
- user.sync(:channels, channels, true)
+ channels = msg.params[2].scan(/[#{@isupport["CHANTYPES"].join}][^ ]+/o).map {|c| Channel(c) }
+ @whois_updates[user].merge!({:channels => channels})
end
def on_324(msg, events)
Something went wrong with that request. Please try again.