Commit 6320efd
authored
fix handleTOPIC only supporting modern RPL_TOPIC (#72)
handleTOPIC was using the wrong event parameters when a TOPIC message
or (old) RPL_TOPIC was received, it only handles (new) RPL_TOPIC messages
correctly.
TOPIC messages are defined as `TOPIC <channel> [:<topic>]` in both specs
while RPL_TOPIC differs between RFC1459/RFC2812 and "Modern IRC" such that
they are respectively defined as `RPC_TOPIC <channel> :<topic>` and
`RPL_TOPIC <client> <channel> :<topic>`.
The old code only correctly parsed the "Modern IRC" RPL_TOPIC variant and
not the (old) RPL_TOPIC or TOPIC events, these were instead silently never
used in state tracking of the channel topic.1 parent 0c03e8d commit 6320efd
2 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
233 | 237 | | |
| 238 | + | |
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
| |||
240 | 245 | | |
241 | 246 | | |
242 | 247 | | |
243 | | - | |
| 248 | + | |
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
| |||
0 commit comments