]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Minor esthetical fixups
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 5 Aug 2006 11:01:46 +0000 (11:01 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 5 Aug 2006 11:01:46 +0000 (11:01 +0000)
lib/rbot/irc.rb

index 5d3b01ec1a1139551867b507fafaaa20c62390c3..6ef84eb0d64e1ed8e0603b9ee1d6a7d8e16cbcae 100644 (file)
@@ -533,8 +533,8 @@ module Irc
       str = "<#{self.class}:#{'0x%x' % self.object_id}:"\r
       str << " @server=#{@server}" if @server\r
       str << " @nick=#{@nick.inspect} @user=#{@user.inspect}"\r
-      str << " @host=#{@host.inspect} casemap=#{casemap.inspect}>"\r
-      str\r
+      str << " @host=#{@host.inspect} casemap=#{casemap.inspect}"\r
+      str << ">"\r
     end\r
 \r
     # Equality: two Netmasks are equal if they downcase to the same thing\r
@@ -1008,8 +1008,8 @@ module Irc
       str = "<#{self.class}:#{'0x%x' % self.object_id}:"\r
       str << " on server #{server}" if server\r
       str << " @name=#{@name.inspect} @topic=#{@topic.text.inspect}"\r
-      str << " @users=<#{@users.sort.join(', ')}>"\r
-      str\r
+      str << " @users=[#{@users.sort.join(', ')}]"\r
+      str << ">"\r
     end\r
 \r
     # Returns self\r
@@ -1154,8 +1154,8 @@ module Irc
       str = "<#{self.class}:#{'0x%x' % self.object_id}:"\r
       str << " @hostname=#{hostname}"\r
       str << " @channels=#{chans}"\r
-      str << " @users=#{users}>"\r
-      str\r
+      str << " @users=#{users}"\r
+      str << ">"\r
     end\r
 \r
     # Create a new Server, with all instance variables reset to nil (for\r