degesch: don't require channels to have buffers
This commit is contained in:
parent
e8e039c11c
commit
9c0f0c0e33
|
@ -2168,7 +2168,7 @@ irc_handle_quit (struct app_context *ctx, const struct irc_message *msg)
|
||||||
LIST_FOR_EACH (struct user_channel, iter, user->channels)
|
LIST_FOR_EACH (struct user_channel, iter, user->channels)
|
||||||
{
|
{
|
||||||
buffer = str_map_find (&ctx->irc_buffer_map, iter->channel->name);
|
buffer = str_map_find (&ctx->irc_buffer_map, iter->channel->name);
|
||||||
hard_assert (buffer != NULL);
|
if (buffer)
|
||||||
buffer_send (ctx, buffer, BUFFER_LINE_QUIT, 0,
|
buffer_send (ctx, buffer, BUFFER_LINE_QUIT, 0,
|
||||||
msg->prefix, message, "");
|
msg->prefix, message, "");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue