]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/ircbot.rb
+ (botuser + maskdb) fast netmask lookup + supplemental fixes for transient users
[user/henk/code/ruby/rbot.git] / lib / rbot / ircbot.rb
index ca40e0d63f87a92f89515726f2464d0000d8f358..1e12ddcc351385edc92b89eab261219f554fe6b3 100644 (file)
@@ -338,9 +338,9 @@ class Bot
 
     unless botclass and not botclass.empty?
       # We want to find a sensible default.
-      #  * On POSIX systems we prefer ~/.rbot for the effective uid of the process
-      #  * On Windows (at least the NT versions) we want to put our stuff in the
-      #    Application Data folder.
+      # * On POSIX systems we prefer ~/.rbot for the effective uid of the process
+      # * On Windows (at least the NT versions) we want to put our stuff in the
+      #   Application Data folder.
       # We don't use any particular O/S detection magic, exploiting the fact that
       # Etc.getpwuid is nil on Windows
       if Etc.getpwuid(Process::Sys.geteuid)
@@ -622,7 +622,7 @@ class Bot
 
       @plugins.delegate("listen", m)
       @plugins.delegate("join", m)
-      sendq "WHO #{data[:channel]}", data[:channel], 2
+      sendq("WHO #{data[:channel]}", data[:channel], 2) if m.address?
     }
     @client[:part] = proc {|data|
       m = PartMessage.new(self, server, data[:source], data[:channel], data[:message])