Changeset 38c076622c020e509c8f1dca4e3168ea38f5999e
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
ra1db667
|
r38c0766
|
|
| 1332 | 1332 | @whois ||= Hash.new |
| 1333 | 1333 | @whois[:nick] = argv[1] |
| 1334 | | @whois[:channels] = [] |
| | 1334 | @whois[:channels] ||= [] |
| 1335 | 1335 | user = @server.user(@whois[:nick]) |
| 1336 | 1336 | argv[-1].split.each do |prechan| |