summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-02-07 11:35:30 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-02-07 11:35:30 +0100
commit3cbc6c46764b6dab92ca6ac92adf9d3fe46eddff (patch)
tree0e28bef0ba5cfa473cae0c5832bb5be7b5a16fe0 /lib
parent052217de30c59206d7025b582d4604557a747470 (diff)
auth: force no-nick reply when meeting someone
This prevents things such as "nickA: hi, nickB" where nickA is e.g. the owner and nickB is the newly met user.
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/auth.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb
index 465f8f5d..c0234d50 100644
--- a/lib/rbot/core/auth.rb
+++ b/lib/rbot/core/auth.rb
@@ -649,7 +649,7 @@ class AuthModule < CoreBotModule
if !nick
# we are actually responding to a 'hello' command
unless m.botuser.transient?
- m.reply @bot.lang.get('hello_X') % m.botuser
+ m.reply @bot.lang.get('hello_X') % m.botuser, :nick => false
return
end
nick = m.sourcenick
@@ -668,7 +668,7 @@ class AuthModule < CoreBotModule
met = @bot.auth.make_permanent(irc_user, buname)
@bot.auth.set_changed
call_event(:botuser,:post_perm, {:irc_user => irc_user, :bot_user => buname})
- m.reply @bot.lang.get('hello_X') % met
+ m.reply @bot.lang.get('hello_X') % met, :nick => false
@bot.say nick, _("you are now registered as %{buname}. I created a random password for you : %{pass} and you can change it at any time by telling me 'user set password <password>' in private" % {
:buname => buname,
:pass => met.password