degesch: handle RPL_UMODEIS

This commit is contained in:
Přemysl Eric Janouch 2015-06-10 22:15:58 +02:00
parent 2c24f714b6
commit c673882670
1 changed files with 15 additions and 0 deletions

View File

@ -4715,6 +4715,19 @@ irc_handle_rpl_userhost (struct server *s, const struct irc_message *msg)
str_vector_free (&v);
}
static void
irc_handle_rpl_umodeis (struct server *s, const struct irc_message *msg)
{
if (msg->params.len < 2)
return;
str_reset (&s->irc_user_mode);
irc_handle_mode_user (s, msg->params.vector + 1);
// XXX: do we want to log a message?
refresh_prompt (s->ctx);
}
static void
irc_handle_rpl_namreply (struct server *s, const struct irc_message *msg)
{
@ -5127,6 +5140,8 @@ irc_process_numeric (struct server *s,
irc_handle_rpl_isupport (s, msg); break;
case IRC_RPL_USERHOST:
irc_handle_rpl_userhost (s, msg); break;
case IRC_RPL_UMODEIS:
irc_handle_rpl_umodeis (s, msg); buffer = NULL; break;
case IRC_RPL_NAMREPLY:
irc_handle_rpl_namreply (s, msg); buffer = NULL; break;
case IRC_RPL_ENDOFNAMES: