privmsg (DnsPlugin)

    # File rbot/plugins/nslookup.rb, line 28
      def privmsg(m)
        unless(m.params)
          m.reply "incorrect usage: " + help(m.plugin)
          return
        end
        Thread.new do
          if(m.params =~ /^\d+\.\d+\.\d+\.\d+$/)
           begin
             a = gethostname(m.params)
             m.reply m.params + ": " + a if a
           rescue StandardError => err
             m.reply "#{m.params}: not found"
           end
          elsif(m.params =~ /^(\w|\.)+$/)
           begin
             a = getaddresses(m.params)
             m.reply m.params + ": " + a.join(", ")
           rescue StandardError => err
             m.reply "#{m.params}: not found"
           end
          else
           m.reply "incorrect usage: " + help(m.plugin)
          end
        end
      end