summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/auth.rb4
-rw-r--r--lib/rbot/core/userdata.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb
index bab62f52..71ec4fb9 100644
--- a/lib/rbot/core/auth.rb
+++ b/lib/rbot/core/auth.rb
@@ -248,7 +248,7 @@ class AuthModule < CoreBotModule
return auth_whoami(m, params) if !m.public?
u = m.channel.users[params[:user]]
- return m.reply "I don't see anyone named '#{params[:user]}' here" unless u
+ return m.reply("I don't see anyone named '#{params[:user]}' here") unless u
m.reply _("#{params[:user]} is %{who}") % {
:who => get_botusername_for(u).gsub(
@@ -498,7 +498,7 @@ class AuthModule < CoreBotModule
butarget.send(method, mask.to_irc_netmask(:server => @bot.server))
rescue => e
debug "failed with #{e.message}"
- debug e.backtrace.join "\n"
+ debug e.backtrace.join("\n")
failed << mask
end
}
diff --git a/lib/rbot/core/userdata.rb b/lib/rbot/core/userdata.rb
index 34ed48ad..96995724 100644
--- a/lib/rbot/core/userdata.rb
+++ b/lib/rbot/core/userdata.rb
@@ -69,7 +69,7 @@ class UserDataModule < CoreBotModule
else
bh = @botuser[bu.username] || {}
end
- return ih.merge! bh
+ return ih.merge!(bh)
end
def get_data(user, key=nil)
@@ -130,13 +130,13 @@ class UserDataModule < CoreBotModule
key = params[:key].intern
data = get_data(user, key)
if data
- m.reply (_("%{key} data for %{user}: %{data}") % {
+ m.reply(_("%{key} data for %{user}: %{data}") % {
:key => key,
:user => user.nick,
:data => data
})
else
- m.reply (_("sorry, no %{key} data for %{user}") % {
+ m.reply(_("sorry, no %{key} data for %{user}") % {
:key => key,
:user => user.nick,
})