summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-21 22:57:55 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-21 22:57:55 +0000
commita664049fc24e14bef458aee8f839b6a8c1909c3b (patch)
tree8396396ca7d05c6eadbef1a5cc99cd79a61c5e24 /lib
parentb60f397a9e92b6e6c8d3c8a5d0ba41a5b8bcb896 (diff)
Suppress some warnings
Diffstat (limited to 'lib')
-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,
})