From 9c0f0c0e33d583c7b7404c8318fda0c42b35997e Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Tue, 21 Apr 2015 21:36:59 +0200
Subject: degesch: don't require channels to have buffers
---
degesch.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/degesch.c b/degesch.c
index 0cac7d3..8221cb8 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2168,9 +2168,9 @@ irc_handle_quit (struct app_context *ctx, const struct irc_message *msg)
LIST_FOR_EACH (struct user_channel, iter, user->channels)
{
buffer = str_map_find (&ctx->irc_buffer_map, iter->channel->name);
- hard_assert (buffer != NULL);
- buffer_send (ctx, buffer, BUFFER_LINE_QUIT, 0,
- msg->prefix, message, "");
+ if (buffer)
+ buffer_send (ctx, buffer, BUFFER_LINE_QUIT, 0,
+ msg->prefix, message, "");
// Unlink the user from the channel
struct channel *channel = iter->channel;
--
cgit v1.2.3-70-g09d2