diff options
author | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
---|---|---|
committer | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
commit | 783ffa4235330029d661752b1023db635b26f2b3 (patch) | |
tree | e60c7a89e7053120b33810230401f5490a3cb697 /lib/rbot/core | |
parent | ff452ad1bf111025f0661274ac7fb8b2f769a293 (diff) |
remove whitespace
Diffstat (limited to 'lib/rbot/core')
-rw-r--r-- | lib/rbot/core/basics.rb | 2 | ||||
-rw-r--r-- | lib/rbot/core/filters_ui.rb | 4 | ||||
-rw-r--r-- | lib/rbot/core/irclog.rb | 2 | ||||
-rw-r--r-- | lib/rbot/core/remote.rb | 2 | ||||
-rw-r--r-- | lib/rbot/core/userdata.rb | 2 | ||||
-rw-r--r-- | lib/rbot/core/utils/httputil.rb | 2 | ||||
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 4 |
7 files changed, 9 insertions, 9 deletions
diff --git a/lib/rbot/core/basics.rb b/lib/rbot/core/basics.rb index 3fc794bc..832cbb25 100644 --- a/lib/rbot/core/basics.rb +++ b/lib/rbot/core/basics.rb @@ -190,7 +190,7 @@ basics.map "mode :where :what *who", :action => 'bot_mode', :auth_path => 'talk::do' -basics.map "join :chan :pass", +basics.map "join :chan :pass", :action => 'bot_join', :defaults => {:pass => nil}, :auth_path => 'move' diff --git a/lib/rbot/core/filters_ui.rb b/lib/rbot/core/filters_ui.rb index 2ac258d6..31e35452 100644 --- a/lib/rbot/core/filters_ui.rb +++ b/lib/rbot/core/filters_ui.rb @@ -27,7 +27,7 @@ class FiltersModule < CoreBotModule msg = _("no known filters") end else - msg = _("known filters: ") << ar.join(", ") + msg = _("known filters: ") << ar.join(", ") end m.reply msg end @@ -37,7 +37,7 @@ class FiltersModule < CoreBotModule if ar.empty? msg = _("no known filter groups") else - msg = _("known filter groups: ") << ar.join(", ") + msg = _("known filter groups: ") << ar.join(", ") end m.reply msg end diff --git a/lib/rbot/core/irclog.rb b/lib/rbot/core/irclog.rb index b848947c..40266772 100644 --- a/lib/rbot/core/irclog.rb +++ b/lib/rbot/core/irclog.rb @@ -153,7 +153,7 @@ class IrcLogModule < CoreBotModule irclog "@ #{m.source} asked #{who} about #{[m.ctcp, m.message].join(' ')}", logtarget end else - if m.public? + if m.public? irclog "<#{m.source}> #{m.logmessage}", m.target else irclog "<#{m.source}(#{m.sourceaddress})> #{m.logmessage}", m.source diff --git a/lib/rbot/core/remote.rb b/lib/rbot/core/remote.rb index 7157195f..2d39d769 100644 --- a/lib/rbot/core/remote.rb +++ b/lib/rbot/core/remote.rb @@ -147,7 +147,7 @@ class Bot # # Presently, the hash returned on success has only one key, :return, whose # value is the actual return value of the successfull dispatch. - # + # # TODO this same kind of mechanism could actually be used in MessageMapper # itself to be able to handle the case of multiple plugins having the same # 'first word' ... diff --git a/lib/rbot/core/userdata.rb b/lib/rbot/core/userdata.rb index 2b142bee..ced5c1e7 100644 --- a/lib/rbot/core/userdata.rb +++ b/lib/rbot/core/userdata.rb @@ -25,7 +25,7 @@ module ::Irc # # If you have to do large-scale editing of the Bot data Hash, # please use with_botdata. - # + # def set_botdata(key, value=nil, &block) Irc::Utils.bot.plugins['userdata'].set_data(self, key, value, &block) end diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index 68e00ba5..4ea83104 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -99,7 +99,7 @@ module ::Net end when 'deflate' debug "inflating body" - # From http://www.koders.com/ruby/fid927B4382397E5115AC0ABE21181AB5C1CBDD5C17.aspx?s=thread: + # From http://www.koders.com/ruby/fid927B4382397E5115AC0ABE21181AB5C1CBDD5C17.aspx?s=thread: # -MAX_WBITS stops zlib from looking for a zlib header inflater = Zlib::Inflate.new(-Zlib::MAX_WBITS) begin diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index 8df9626c..77bdeecf 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -287,13 +287,13 @@ module ::Irc _("%{m} minutes") % { :m => secs/SEC_PER_MIN } when secs > 1 _("%{m} seconds") % { :m => secs } - else + else _("one second") end end # Execute an external program, returning a String obtained by redirecting - # the program's standards errors and output + # the program's standards errors and output # def Utils.safe_exec(command, *args) IO.popen("-") { |p| |