Skip to content

Commit

Permalink
Add support for RPL_UMODEIS (#332)
Browse files Browse the repository at this point in the history
* Add support for RPL_UMODEIS

https://modern.ircdocs.horse/#rplumodeis-221

* fix indent

* Remove RPL_UMODEIS from irc_event_numeric.

* re-add default clause and reorder cases
  • Loading branch information
progval authored Sep 4, 2021
1 parent 2234bd9 commit eaa75ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sirc/sirc_event_hdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ void sirc_event_hdr(SircSession *sirc, SircMessage *imsg){
if (num != 0) {
/* Numeric command */
switch (num){
case SIRC_RFC_RPL_UMODEIS:
/* User mode changed */
g_return_if_fail(events->umode);
events->umode(sirc, imsg->cmd, origin, params, imsg->nparam);
return;
case SIRC_RFC_RPL_WELCOME:
g_return_if_fail(events->welcome);
events->welcome(sirc, num, origin, params, imsg->nparam);
Expand Down

0 comments on commit eaa75ca

Please sign in to comment.