From 18f3c74d68e79f5962000770fca9e663bf1b1c23 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Jun 2000 22:57:53 +0000 Subject: CTCP msgs/replies stops the "event privmsg" or "event notice" signals now so you don't have to check for them anymore (unless you use signal_add_first()..). /WINDOW MOVE command had some bugs. CTCP reply to some channel didn't display the channel name. Several code cleanups. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@327 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-special-vars.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/irc/core/irc-special-vars.c') diff --git a/src/irc/core/irc-special-vars.c b/src/irc/core/irc-special-vars.c index 9fcb5808..09e0db11 100644 --- a/src/irc/core/irc-special-vars.c +++ b/src/irc/core/irc-special-vars.c @@ -223,14 +223,12 @@ static void event_privmsg(const char *data, IRC_SERVER_REC *server, const char * params = event_get_params(data, 2 | PARAM_FLAG_GETREST, &target, &msg); - if (*msg != 1) { - if (!ischannel(*target)) { - g_free_not_null(last_privmsg_from); - last_privmsg_from = g_strdup(nick); - } else { - g_free_not_null(last_public_from); - last_public_from = g_strdup(nick); - } + if (!ischannel(*target)) { + g_free_not_null(last_privmsg_from); + last_privmsg_from = g_strdup(nick); + } else { + g_free_not_null(last_public_from); + last_public_from = g_strdup(nick); } g_free(params); -- cgit v1.2.3