diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-21 21:36:59 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-21 21:36:59 +0200 |
commit | 9c0f0c0e33d583c7b7404c8318fda0c42b35997e (patch) | |
tree | 9eef431b71e4fb92be23b5aa777d5c182f53789d | |
parent | e8e039c11c937426c5a03e38e95485a2cd57068f (diff) | |
download | xK-9c0f0c0e33d583c7b7404c8318fda0c42b35997e.tar.gz xK-9c0f0c0e33d583c7b7404c8318fda0c42b35997e.tar.xz xK-9c0f0c0e33d583c7b7404c8318fda0c42b35997e.zip |
degesch: don't require channels to have buffers
-rw-r--r-- | degesch.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |