diff options
author | Timo Sirainen <cras@irssi.org> | 2004-01-25 18:18:18 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-01-25 18:18:18 +0000 |
commit | 33e7528edb3a22bbc90f122a948fb47e22df4bd0 (patch) | |
tree | 55a016fbadfbbe271f7aad07fafe3014e79c69be /src/irc/core/irc-nicklist.c | |
parent | d94a55a38b50f13b846b8f9b506a8614a5f2d485 (diff) | |
download | irssi-33e7528edb3a22bbc90f122a948fb47e22df4bd0.zip |
isupport updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3219 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-nicklist.c')
-rw-r--r-- | src/irc/core/irc-nicklist.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c index e5d25d5c..53c4abe0 100644 --- a/src/irc/core/irc-nicklist.c +++ b/src/irc/core/irc-nicklist.c @@ -404,15 +404,11 @@ static void sig_usermode(SERVER_REC *server) static const char *get_nick_flags(SERVER_REC *server) { IRC_SERVER_REC *irc_server = (IRC_SERVER_REC *) server; - static char *std = "@%+"; - char *prefix = g_hash_table_lookup(irc_server->isupport, "prefix"); + const char *prefix = + g_hash_table_lookup(irc_server->isupport, "PREFIX"); - if (prefix == NULL) - return std; prefix = strchr(prefix, ')'); - if (prefix != NULL || *++prefix == '\0') /* FIXME: ugly to modify it */ - return std; - return prefix; + return prefix == NULL ? "" : prefix+1; } static void sig_connected(IRC_SERVER_REC *server) |