mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Abort joins on 442-numeric that dalnet sends when you can't join to channel
because you've not registered your nick. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2288 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ffe00ae245
commit
3f75bd3c3c
@ -872,6 +872,7 @@ void fe_events_numeric_init(void)
|
|||||||
signal_add("event 368", (SIGNAL_FUNC) event_target_received);
|
signal_add("event 368", (SIGNAL_FUNC) event_target_received);
|
||||||
signal_add("event 347", (SIGNAL_FUNC) event_target_received);
|
signal_add("event 347", (SIGNAL_FUNC) event_target_received);
|
||||||
signal_add("event 349", (SIGNAL_FUNC) event_target_received);
|
signal_add("event 349", (SIGNAL_FUNC) event_target_received);
|
||||||
|
signal_add("event 442", (SIGNAL_FUNC) event_target_received);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fe_events_numeric_deinit(void)
|
void fe_events_numeric_deinit(void)
|
||||||
@ -952,4 +953,5 @@ void fe_events_numeric_deinit(void)
|
|||||||
signal_remove("event 368", (SIGNAL_FUNC) event_target_received);
|
signal_remove("event 368", (SIGNAL_FUNC) event_target_received);
|
||||||
signal_remove("event 347", (SIGNAL_FUNC) event_target_received);
|
signal_remove("event 347", (SIGNAL_FUNC) event_target_received);
|
||||||
signal_remove("event 349", (SIGNAL_FUNC) event_target_received);
|
signal_remove("event 349", (SIGNAL_FUNC) event_target_received);
|
||||||
|
signal_remove("event 442", (SIGNAL_FUNC) event_target_received);
|
||||||
}
|
}
|
||||||
|
@ -312,6 +312,7 @@ void channel_events_init(void)
|
|||||||
signal_add_first("event 403", (SIGNAL_FUNC) event_cannot_join); /* no such channel */
|
signal_add_first("event 403", (SIGNAL_FUNC) event_cannot_join); /* no such channel */
|
||||||
signal_add_first("event 405", (SIGNAL_FUNC) event_cannot_join); /* too many channels */
|
signal_add_first("event 405", (SIGNAL_FUNC) event_cannot_join); /* too many channels */
|
||||||
signal_add_first("event 407", (SIGNAL_FUNC) event_duplicate_channel); /* duplicate channel */
|
signal_add_first("event 407", (SIGNAL_FUNC) event_duplicate_channel); /* duplicate channel */
|
||||||
|
signal_add_first("event 442", (SIGNAL_FUNC) event_cannot_join); /* not on that channel (dalnet) */
|
||||||
signal_add_first("event 471", (SIGNAL_FUNC) event_cannot_join); /* channel is full */
|
signal_add_first("event 471", (SIGNAL_FUNC) event_cannot_join); /* channel is full */
|
||||||
signal_add_first("event 473", (SIGNAL_FUNC) event_cannot_join); /* invite only */
|
signal_add_first("event 473", (SIGNAL_FUNC) event_cannot_join); /* invite only */
|
||||||
signal_add_first("event 474", (SIGNAL_FUNC) event_cannot_join); /* banned */
|
signal_add_first("event 474", (SIGNAL_FUNC) event_cannot_join); /* banned */
|
||||||
@ -334,6 +335,7 @@ void channel_events_deinit(void)
|
|||||||
signal_remove("event 403", (SIGNAL_FUNC) event_cannot_join); /* no such channel */
|
signal_remove("event 403", (SIGNAL_FUNC) event_cannot_join); /* no such channel */
|
||||||
signal_remove("event 405", (SIGNAL_FUNC) event_cannot_join); /* too many channels */
|
signal_remove("event 405", (SIGNAL_FUNC) event_cannot_join); /* too many channels */
|
||||||
signal_remove("event 407", (SIGNAL_FUNC) event_duplicate_channel); /* duplicate channel */
|
signal_remove("event 407", (SIGNAL_FUNC) event_duplicate_channel); /* duplicate channel */
|
||||||
|
signal_remove("event 442", (SIGNAL_FUNC) event_cannot_join); /* not on that channel (dalnet) */
|
||||||
signal_remove("event 471", (SIGNAL_FUNC) event_cannot_join); /* channel is full */
|
signal_remove("event 471", (SIGNAL_FUNC) event_cannot_join); /* channel is full */
|
||||||
signal_remove("event 473", (SIGNAL_FUNC) event_cannot_join); /* invite only */
|
signal_remove("event 473", (SIGNAL_FUNC) event_cannot_join); /* invite only */
|
||||||
signal_remove("event 474", (SIGNAL_FUNC) event_cannot_join); /* banned */
|
signal_remove("event 474", (SIGNAL_FUNC) event_cannot_join); /* banned */
|
||||||
|
Loading…
Reference in New Issue
Block a user