summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-07 08:49:36 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-07 08:49:36 +0200
commit8a3ef5e5aaf5cb8305728f3bcd407ac17fc23138 (patch)
treee89f18b0aef56944d9f02e2611b148ed4040b150 /data/rbot
parente00ea339ca3baaa9cfe74f6cec85c36e83307b61 (diff)
linkbot, remotectl plugins: delegate message() too
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/linkbot.rb1
-rw-r--r--data/rbot/plugins/remotectl.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/data/rbot/plugins/linkbot.rb b/data/rbot/plugins/linkbot.rb
index 670be36d..b50027ec 100644
--- a/data/rbot/plugins/linkbot.rb
+++ b/data/rbot/plugins/linkbot.rb
@@ -65,6 +65,7 @@ class LinkBot < Plugin
# and delegate it to the plugins
new_m = PrivMessage.new(@bot, m.server, m.server.user(new_nick), m.target, message)
@bot.plugins.delegate "listen", new_m
+ @bot.plugins.delegate "message", new_m
@bot.plugins.privmsg(new_m) if new_m.address?
## Another way is to create a data Hash with source, target and message keys
diff --git a/data/rbot/plugins/remotectl.rb b/data/rbot/plugins/remotectl.rb
index d6817739..929b07b9 100644
--- a/data/rbot/plugins/remotectl.rb
+++ b/data/rbot/plugins/remotectl.rb
@@ -19,6 +19,7 @@ class RemoteCtlPlugin < Plugin
@bot.auth.login(u, m.source.username, m.source.password)
new_m = PrivMessage.new(@bot, @bot.server, u, @bot.myself, s)
@bot.plugins.delegate "listen", new_m
+ @bot.plugins.delegate "message", new_m
@bot.plugins.privmsg(new_m)
end
end