Show
Ignore:
Timestamp:
03/16/10 17:16:20 (6 months ago)
Author:
Giuseppe Bilotta <giuseppe.bilotta@…>
Children:
904106997bab0ea9894516ae324af6f3538ccf24
Parents:
e1e90efaf2e9d9d09046e8877c276cb209c5e614
git-committer:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1268748980 +0100
Message:

seen: use corret 'where' in 'before' case

For the 'before' part of the reply, make sure we use the where
from the correct Saw. Otherwise, for example, a public message
preceeding a quit would show a dangling 'in ' at the end of the reply.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • data/rbot/plugins/seen.rb

    rd7cdc2a r2f623ce  
    126126    if before && [:PART, :QUIT].include?(saw.type.to_sym) && 
    127127       [:PUBLIC, :ACTION].include?(before.type.to_sym) 
     128      # TODO see chan_privacy 
     129      prev_chan_privacy = false 
     130      prev_where = prev_chan_privacy ? _(CHANPRIV_CHAN) : before.where 
    128131      did_before = case before.type.to_sym 
    129132      when :PUBLIC 
     
    134137        :nick => saw.nick, 
    135138        :message => before.message, 
    136         :where => where 
     139        :where => prev_where 
    137140      } 
    138141