summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-01 21:46:22 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-01 21:48:30 +0200
commit0757ce424ce288f4b9bb45491090fc8c3bae5bd4 (patch)
treef075d81b86929ff77a55abf6ed11d493f50c8681 /degesch.c
parent328ffd024aa64cb8dc87f2e5032140067abd33d2 (diff)
downloadxK-0757ce424ce288f4b9bb45491090fc8c3bae5bd4.tar.gz
xK-0757ce424ce288f4b9bb45491090fc8c3bae5bd4.tar.xz
xK-0757ce424ce288f4b9bb45491090fc8c3bae5bd4.zip
degesch: make use of values from RPL_ISUPPORT
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/degesch.c b/degesch.c
index 5392092..e256eeb 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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)