Changeset 2f623ce5c2748ae0a6d7628fc2cd06625a644c21
- Timestamp:
- 03/16/10 17:16:20 (5 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rd7cdc2a
|
r2f623ce
|
|
| 126 | 126 | if before && [:PART, :QUIT].include?(saw.type.to_sym) && |
| 127 | 127 | [: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 |
| 128 | 131 | did_before = case before.type.to_sym |
| 129 | 132 | when :PUBLIC |
| … |
… |
|
| 134 | 137 | :nick => saw.nick, |
| 135 | 138 | :message => before.message, |
| 136 | | :where => where |
| | 139 | :where => prev_where |
| 137 | 140 | } |
| 138 | 141 | |