Skip to content

Commit

Permalink
Fix a weird bug with highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Dec 25, 2012
1 parent b8a5054 commit b492cb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/upgrade1.sql
Expand Up @@ -6,4 +6,5 @@ UPDATE irclog SET opcode='join', nick=left(line, instr(line, ' ')) WHERE nick IS
UPDATE irclog SET opcode='leave', nick=left(line, instr(line, ' ')) WHERE nick IS NULL AND opcode IS NULL AND line LIKE '% has left #%';
UPDATE irclog SET opcode='kick', nick=left(line, instr(line, ' ')) WHERE nick IS NULL AND opcode IS NULL AND line LIKE '% was kicked from #%';
UPDATE irclog SET opcode='nick', nick=left(line, instr(line, ' ')) WHERE nick IS NULL AND opcode IS NULL AND line LIKE '% is now known as %';
UPDATE irclog SET opcode='quit', nick=left(line, instr(line, ' ')) WHERE nick IS NULL AND opcode IS NULL AND line LIKE '% has quit%';
UPDATE irclog SET opcode='quit', nick=left(line, instr(line, ' ')) WHERE nick IS NULL AND opcode IS NULL AND line LIKE '% has quit%';
UPDATE irclog SET nick=TRIM(nick) WHERE nick IS NOT NULL;
3 changes: 2 additions & 1 deletion lib/irclogger/message.rb
Expand Up @@ -28,7 +28,8 @@ def info?
end

def self.nicks(messages)
messages.filter('nick is not null').
messages.
filter('nick is not null').
select(:nick).distinct(:nick).
map(&:nick).to_set
end
Expand Down

0 comments on commit b492cb3

Please sign in to comment.