Permalink
Browse files

Must be called _filter

  • Loading branch information...
1 parent 09cc883 commit 2183614f87a74d85d946ab06cb9e74429f0f695f @radar radar committed Jan 15, 2009
Showing with 2 additions and 20 deletions.
  1. +1 −3 config/seasons/logga/leaves.yml
  2. +1 −16 leaves/logga/controller.rb
  3. +0 −1 libs/genesis.rb
@@ -1,5 +1,3 @@
Logga:
class: Logga
- # authentication:
- # type: nick
- # nick: Radar
+ respond_to_private_messages: true
View
@@ -214,7 +214,7 @@ def authorized?(nick)
User.find_by_login(nick.downcase)
end
- def check_for_new_day
+ def check_for_new_day_filter
@day = Day.find_or_create_by_date(Date.today) if @today!=Date.today
@today = Date.today
@day.increment!("chats_count")
@@ -227,21 +227,6 @@ def find_or_create_person(name)
def find_or_create_hostname(hostname, person)
person.hostnames << Hostname.find_or_create_by_hostname(hostname)
end
-
- def did_receive_private_message(stem, sender, message)
- command = /^!(.*?)\s(.*?)$/.match(message)
- if command
- # Private lookup.
- if command[1] == "lookup"
- lookup_command(stem, sender, sender[:nick], command[2])
- # Send stuff to a designated channel.
- elsif command[1] == "say"
- parts = command[2].split(" ")
- channel = parts.first
- stem.message(parts[1..-1].join(" "), channel)
- end
- end
- end
def did_receive_channel_message(stem, sender, channel, message)
person = find_or_create_person(sender[:nick])
View
@@ -130,7 +130,6 @@ def load_shared_code
# PREREQS: load_season_settings
def load_databases
- puts @season_dir
db_file = "#{@season_dir}/database.yml"
if !File.exist?(db_file)
$NO_DATABASE = true

0 comments on commit 2183614

Please sign in to comment.