]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/botuser.rb
BotUser wants username=, not name=
[user/henk/code/ruby/rbot.git] / lib / rbot / botuser.rb
index 952776d818c8a80cf1bcb4fb3d1c89ecd53f9772..cc9e01a58f2608b996a436f83f50f2bbece89d56 100644 (file)
@@ -110,6 +110,7 @@ module Irc
     # This class describes a permission set\r
     class PermissionSet\r
 \r
+      attr_reader :perm\r
       # Create a new (empty) PermissionSet\r
       #\r
       def initialize\r
@@ -583,7 +584,7 @@ module Irc
         k = n.to_sym\r
         raise "No such BotUser #{n}" unless include?(k)\r
         if @botusers.has_key?(ircuser)\r
-          return true if @botusers[ircuser].name = n\r
+          return true if @botusers[ircuser].username = n\r
           # TODO\r
           # @botusers[ircuser].logout(ircuser)\r
         end\r