Changeset 6028

Show
Ignore:
Timestamp:
02/02/08 14:10:40 (10 months ago)
Author:
cho45
Message:

lang/ruby/net-irc/trunk/examples/tig.rb:

なんか間違えてたっぽいので修正。
このへんの RFC の読みかたがわからない。
RPL_ 系っておくりかえすとき、送ったひとの nick 必須なんだろうか

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/net-irc/trunk/examples/tig.rb

    r6027 r6028  
    164164                f = (@friends || []).find {|i| i["screen_name"] == nick } 
    165165                if f 
    166                         post nil, RPL_WHOISUSER,   nick, nick, nick, api_base.host, "*", "#{f["name"]} / #{f["description"]}" 
    167                         post nil, RPL_WHOISSERVER, nick, api_base.host, api_base.to_s 
    168                         post nil, RPL_WHOISIDLE,   nick, "0", "seconds idle" 
    169                         post nil, RPL_ENDOFWHOIS,  nick, "End of WHOIS list" 
     166                        post nil, RPL_WHOISUSER,   @nick, nick, nick, api_base.host, "*", "#{f["name"]} / #{f["description"]}" 
     167                        post nil, RPL_WHOISSERVER, @nick, nick, api_base.host, api_base.to_s 
     168                        post nil, RPL_WHOISIDLE,   @nick, nick, "0", "seconds idle" 
     169                        post nil, RPL_ENDOFWHOIS,  @nick, nick, "End of WHOIS list" 
    170170                else 
    171171                        post nil, ERR_NOSUCHNICK, nick, "No such nick/channel"