From 8290d621f384c4d70cd670c028530614f943354d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 27 Nov 2000 10:44:46 +0000 Subject: [PATCH] Call /part command instead of directly sending part message to server when destroying channel. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@888 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/core/irc-channels.c b/src/irc/core/irc-channels.c index 063ca501..4ee9f371 100644 --- a/src/irc/core/irc-channels.c +++ b/src/irc/core/irc-channels.c @@ -86,7 +86,7 @@ static void sig_channel_destroyed(IRC_CHANNEL_REC *channel) if (channel->server != NULL && !channel->left && !channel->kicked) { /* destroying channel record without actually having left the channel yet */ - irc_send_cmdv(channel->server, "PART %s", channel->name); + signal_emit("command part", 3, "", channel->server, channel); } }