Skip to content

Commit

Permalink
Must be called _filter
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Jan 15, 2009
1 parent 09cc883 commit 2183614
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
4 changes: 1 addition & 3 deletions config/seasons/logga/leaves.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Logga:
class: Logga
# authentication:
# type: nick
# nick: Radar
respond_to_private_messages: true
17 changes: 1 addition & 16 deletions leaves/logga/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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])
Expand Down
1 change: 0 additions & 1 deletion libs/genesis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2183614

Please sign in to comment.