Changeset 235634f64decfd4c1c20574474faf0267c8772c5

Show
Ignore:
Timestamp:
08/21/08 22:34:22 (3 months ago)
Author:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
git-committer:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1219343662 +0200
git-parent:

[f6ec4e09d5d309f297b4ff6fd6c65ca82c74b462]

git-author:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1219343662 +0200
Message:

geoip plugin: only retrieve host info once on WHOIS

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • data/rbot/plugins/geoip.rb

    rf6ec4e0 r235634f  
    8383    return unless @stack.has_nick?(nick) 
    8484 
     85    if m.target 
     86      msg = host2output(m.target.host, m.target.nick) 
     87    else 
     88      msg = "no such user on "+@bot.server.hostname.split(".")[-2] 
     89    end 
    8590    @stack[nick].each do |source| 
    86       if m.target 
    87         @bot.say source, host2output(m.target.host, m.target.nick) 
    88       else 
    89         @bot.say source, "no such user on "+@bot.server.hostname.split(".")[-2] 
    90       end 
     91      @bot.say source, msg 
    9192    end 
    9293