Skip to content

Commit 028e756

Browse files
Fix got353() for userhost-in-names
Found by: Robby and michaelortmann Patch by: michaelortmann Fixes: #1604
1 parent b4e1b96 commit 028e756

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mod/irc.mod/chan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,12 +1258,13 @@ static int gotchghost(char *from, char *msg) {
12581258
*/
12591259
static int got353(char *from, char *msg)
12601260
{
1261+
struct capability *current;
12611262
char prefixchars[64];
12621263
char *nameptr, *chname, *uhost, *nick, *p, *host = NULL;
12631264
struct chanset_t *chan = NULL;
12641265
int i;
12651266

1266-
if (find_capability("userhost-in-names")) {
1267+
if ((current = find_capability("userhost-in-names")) && current->enabled) {
12671268
strlcpy(prefixchars, isupport_get_prefixchars(), sizeof prefixchars);
12681269
newsplit(&msg);
12691270
newsplit(&msg); /* Get rid of =, @, or * symbol */

0 commit comments

Comments
 (0)