Changeset 38c076622c020e509c8f1dca4e3168ea38f5999e

Show
Ignore:
Timestamp:
03/07/10 12:46:18 (5 months ago)
Author:
Giuseppe Bilotta <giuseppe.bilotta@…>
Children:
5f9d3a09ef35ffe149aa080e6377d811a1994291
Parents:
f8acbf17ff67de70247671742b4bc4f321e71f17
git-author:
Robin H. Johnson <robbat2@gentoo.org> 1267932124 +0000
git-committer:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1267955178 +0100
Message:

rfc2812: Fix multiple RPL_WHOISCHANNELS handling

The new Freenode ircd returns multiple RPL_WHOISCHANNELS lines (split
based on length), and they must be merged, otherwise only the last ends
up as the list of channels that the bot is in.

Signed-off-by: Robin H. Johnson <robbat2@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lib/rbot/rfc2812.rb

    ra1db667 r38c0766  
    13321332          @whois ||= Hash.new 
    13331333          @whois[:nick] = argv[1] 
    1334           @whois[:channels] = [] 
     1334          @whois[:channels] ||= [] 
    13351335          user = @server.user(@whois[:nick]) 
    13361336          argv[-1].split.each do |prechan|