]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Better workaround for ticket #58; now the {{{names}}} delegationg passes on the chann...
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 28 Jun 2006 21:53:40 +0000 (21:53 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 28 Jun 2006 21:53:40 +0000 (21:53 +0000)
lib/rbot/ircbot.rb

index eb194e688d1adaa11a235c15f38bb5b95b5aae76..e88929fe84364615b6b5a24a31b695704d1346be 100644 (file)
@@ -302,7 +302,7 @@ class IrcBot
       users.each {|u|
         @channels[channel].users[u[0].sub(/^[@&~+]/, '')] = ["mode", u[1]]
       }
-      @plugins.delegate "names"
+      @plugins.delegate "names", data[:channel], data[:users]
     }
     @client[:unknown] = proc {|data|
       #debug "UNKNOWN: #{data[:serverstring]}"