diff options
| author | Alexander Barton <alex@barton.de> | 2012-09-11 11:29:14 -0700 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-09-11 11:29:14 -0700 |
| commit | a072180c9262f8a1c6bba6b8f0613bccc2863f48 (patch) | |
| tree | e92863caf80ea5b64025d29f21c84d3c9d7215f8 /src | |
| parent | 0fd9a8505a2dc325d0a17c7ebbed4b08a76576bf (diff) | |
| parent | 16f94546f5d7c941a0d49b49e8cd523e7b67b19d (diff) | |
| download | ngircd-a072180c9262f8a1c6bba6b8f0613bccc2863f48.tar.gz ngircd-a072180c9262f8a1c6bba6b8f0613bccc2863f48.zip | |
Merge pull request #2 from briancollins/master
Fix IRC_Send_NAMES not sending correct prefix for certain clients.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 6eb8d942..fc04773a 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -1595,10 +1595,10 @@ IRC_Send_NAMES(CLIENT * Client, CHANNEL * Chan) if (is_member || is_visible) { if (str[strlen(str) - 1] != ':') strlcat(str, " ", sizeof(str)); - if (Client_Cap(cl) & CLIENT_CAP_MULTI_PREFIX) { - if (strchr(Channel_UserModes(Chan, cl), 'o') && - strchr(Channel_UserModes(Chan, cl), 'v')) - strlcat(str, "@+", sizeof(str)); + if (Client_Cap(Client) & CLIENT_CAP_MULTI_PREFIX && + strchr(Channel_UserModes(Chan, cl), 'o') && + strchr(Channel_UserModes(Chan, cl), 'v')) { + strlcat(str, "@+", sizeof(str)); } else { if (strchr(Channel_UserModes(Chan, cl), 'o')) strlcat(str, "@", sizeof(str)); |