end
def timestamp(time)
- return time.strftime @bot.config['irclog.timestamp_format']
+ return time.strftime(@bot.config['irclog.timestamp_format'])
end
def event_irclog_list_changed(nolist, dolist)
else
where_str = where.downcase.gsub(/[:!?$*()\/\\<>|"']/, "_")
end
- return unless can_log_on(where_str)
+ next unless can_log_on(where_str)
# close the previous logfile if we're rotating
if @logs.has_key? where_str
# If it's a file, we rename to filename.old.filedate
up = dir.dup
until File.exist? up
- up.replace File.dirname up
+ up.replace(File.dirname(up))
end
unless File.directory? up
backup = up.dup