diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-01 21:46:22 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-01 21:48:30 +0200 |
commit | 0757ce424ce288f4b9bb45491090fc8c3bae5bd4 (patch) | |
tree | f075d81b86929ff77a55abf6ed11d493f50c8681 | |
parent | 328ffd024aa64cb8dc87f2e5032140067abd33d2 (diff) | |
download | xK-0757ce424ce288f4b9bb45491090fc8c3bae5bd4.tar.gz xK-0757ce424ce288f4b9bb45491090fc8c3bae5bd4.tar.xz xK-0757ce424ce288f4b9bb45491090fc8c3bae5bd4.zip |
degesch: make use of values from RPL_ISUPPORT
-rw-r--r-- | degesch.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -3677,9 +3677,9 @@ irc_is_this_us (struct server *s, const char *prefix) static bool irc_is_channel (struct server *s, const char *ident) { - (void) s; // TODO: parse prefixes from server features - - return *ident && !!strchr ("#&+!", *ident); + return *ident + && (!!strchr (s->irc_chantypes, *ident) || + !!strchr (s->irc_idchan_prefixes, *ident)); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -4439,8 +4439,7 @@ irc_process_names (struct server *s, struct channel *channel) { struct str_map map; str_map_init (&map); - // FIXME: use a server-specific strxfrm - map.key_xfrm = irc_strxfrm; + map.key_xfrm = s->irc_strxfrm; // Initialize list of users LIST_FOR_EACH (struct channel_user, iter, channel->users) |