summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2009-01-21 16:49:31 +0100
committerdmitry kim <jason@nichego.net>2009-01-22 02:48:19 +0300
commit750f579b6ad2683abd50b51392e29dd1291d4d7e (patch)
tree0c88d517032dcbe495edff92a23ac245b1ef468e /data
parentec5745fa7abd47b8ca12bd783b0759079dff9917 (diff)
+ (reply) config option to force reply to query
+ (reply) symbol to bypass the config option * (plugins) fixed url according to the patch The symbols are: :to => :public force the message to be replied in channel (if any) :to => :private force the message to be replied in private :to => :auto takes core.private_replies (default)
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/markov.rb2
-rw-r--r--data/rbot/plugins/salut.rb2
-rw-r--r--data/rbot/plugins/url.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb
index 3a1fea59..64e87556 100644
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -187,7 +187,7 @@ class MarkovPlugin < Plugin
# of the line we received
return if message.index(line) == 0
@bot.timer.add_once(delay) {
- m.reply line, :nick => false
+ m.reply line, :nick => false, :to => :public
}
end
diff --git a/data/rbot/plugins/salut.rb b/data/rbot/plugins/salut.rb
index 131821a7..c169d138 100644
--- a/data/rbot/plugins/salut.rb
+++ b/data/rbot/plugins/salut.rb
@@ -158,7 +158,7 @@ class SalutPlugin < Plugin
end
end
debug "Replying #{choice}"
- m.reply choice, :nick => false
+ m.reply choice, :nick => false, :to => :public
end
def reload
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb
index 826af10d..e75224cf 100644
--- a/data/rbot/plugins/url.rb
+++ b/data/rbot/plugins/url.rb
@@ -160,7 +160,7 @@ class UrlPlugin < Plugin
if display_info > urls_displayed
if reply
- m.reply reply, :overlong => :truncate,
+ m.reply reply, :overlong => :truncate, :to => :public,
:nick => (m.address? ? :auto : false)
urls_displayed += 1
end