lib/cinch/plugins/sudo.rb in cinch-sudo-0.1.0 vs lib/cinch/plugins/sudo.rb in cinch-sudo-0.1.1
- old
+ new
@@ -1,10 +1,11 @@
require 'cinch'
require 'file-tail'
module Cinch
module Plugins
+ # Cinch plugin to report usage of Sudo on a machine
class Sudo
include Cinch::Plugin
listen_to :connect
@@ -12,10 +13,10 @@
super
@logfile = config[:logfile]
@channel = config[:channel]
end
- def listen(m)
+ def listen(_m)
if File.exist?(@logfile)
start_tail
else
debug "File (#{@filename}) not found!"
end