summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-06-28 21:44:18 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-06-28 21:44:18 +0000
commit849a727c9f1334c5b5e31b76e52a9cc07009e588 (patch)
tree24c38f5387af243d06066d7d5d22ceb32a17a85f /lib/rbot
parentd764894efae89970e22bad48db4c76d878b35630 (diff)
There are now three nickserv config options (name, ident_request, wait). The bot now also kills any ghosts that use its nick. Close ticket #88. Also provide a workaround for ticket #58.
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 51457a56..eb194e68 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -178,6 +178,7 @@ class IrcBot
}
@client[:nicktaken] = proc { |data|
nickchg "#{data[:nick]}_"
+ @plugins.delegate "nicktaken", data[:nick]
}
@client[:badnick] = proc {|data|
puts "WARNING, bad nick (#{data[:nick]})"
@@ -301,6 +302,7 @@ class IrcBot
users.each {|u|
@channels[channel].users[u[0].sub(/^[@&~+]/, '')] = ["mode", u[1]]
}
+ @plugins.delegate "names"
}
@client[:unknown] = proc {|data|
#debug "UNKNOWN: #{data[:serverstring]}"