Permalink
Browse files

Add logging method for... you guessed it, logging!

  • Loading branch information...
1 parent 486c4b6 commit 7a24975faa5bc960aad0a055eb0ec487adba2951 @radar committed Apr 15, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/summer.rb
View
@@ -129,6 +129,10 @@ def response(message)
def me
config[:nick]
end
+
+ def log(message)
+ File.open(config[:log_file]) { |file| file.write(message) } if config[:log_file]
+ end
end

0 comments on commit 7a24975

Please sign in to comment.