diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-31 17:02:28 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-31 17:02:28 +0000 |
commit | 4fe68fcdd0fca5a9504fb4ddd94c1f4af9216b44 (patch) | |
tree | 9f2fba8681615839577c9ad99f0e4704f5c36f29 /src/fe-common | |
parent | 8f00c21b98fde3bb14e7c0cc7220ced780607dbb (diff) | |
download | irssi-4fe68fcdd0fca5a9504fb4ddd94c1f4af9216b44.zip |
Don't show the full channel name with own joins, because it's logged into
different file than everything else. You can still see the full name with
/WHOIS.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2832 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/fe-events.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c index 7bdf375a..96108ae4 100644 --- a/src/fe-common/irc/fe-events.c +++ b/src/fe-common/irc/fe-events.c @@ -101,8 +101,7 @@ static void event_notice(IRC_SERVER_REC *server, const char *data, static void event_join(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr) { - const char *channel; - char *params, *tmp; + char *params, *channel, *tmp; g_return_if_fail(data != NULL); @@ -110,10 +109,8 @@ static void event_join(IRC_SERVER_REC *server, const char *data, tmp = strchr(channel, 7); /* ^G does something weird.. */ if (tmp != NULL) *tmp = '\0'; - if (g_strcasecmp(server->nick, nick) != 0) - channel = get_visible_target(server, channel); - - signal_emit("message join", 4, server, channel, nick, addr); + signal_emit("message join", 4, server, + get_visible_target(server, channel), nick, addr); g_free(params); } |