Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Use RPL_QUIETLIST and RPL_ENDOFQUIETLIST instead of RPL_BANLIST and
Browse files Browse the repository at this point in the history
RPL_ENDOFBANLIST for channel mode +q.
  • Loading branch information
ahf committed Feb 27, 2010
1 parent 497c263 commit 51027be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions include/numeric.h
Expand Up @@ -349,6 +349,9 @@ extern const char *form_str(int);
#define RPL_NOTESTLINE 726
#define RPL_TESTMASKGECOS 727

#define RPL_QUIETLIST 728
#define RPL_ENDOFQUIETLIST 729

#define RPL_MONONLINE 730
#define RPL_MONOFFLINE 731
#define RPL_MONLIST 732
Expand Down
9 changes: 3 additions & 6 deletions src/chmode.c
Expand Up @@ -687,8 +687,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
case CHFL_QUIET:
list = &chptr->quietlist;
errorval = SM_ERR_RPL_Q;
rpl_list = RPL_BANLIST;
rpl_endlist = RPL_ENDOFBANLIST;
rpl_list = RPL_QUIETLIST;
rpl_endlist = RPL_ENDOFQUIETLIST;
mems = ALL_MEMBERS;
caps = 0;
break;
Expand Down Expand Up @@ -723,10 +723,7 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
me.name, source_p->name, chptr->chname,
banptr->banstr, banptr->who, banptr->when);
}
if (mode_type == CHFL_QUIET)
sendto_one(source_p, ":%s %d %s %s :End of Channel Quiet List", me.name, rpl_endlist, source_p->name, chptr->chname);
else
sendto_one(source_p, form_str(rpl_endlist), me.name, source_p->name, chptr->chname);
sendto_one(source_p, form_str(rpl_endlist), me.name, source_p->name, chptr->chname);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/messages.tab
Expand Up @@ -749,8 +749,8 @@ static const char * replies[] = {
/* 725 RPL_TESTLINE */ ":%s 725 %s %c %ld %s :%s",
/* 726 RPL_NOTESTLINE */ ":%s 726 %s %s :No matches",
/* 727 RPL_TESTMASKGECOS */ ":%s 727 %s %d %d %s!%s@%s %s :Local/remote clients match",
/* 728 */ NULL,
/* 729 */ NULL,
/* 728 RPL_QUIETLIST */ ":%s 728 %s %s q %s %s %lu",
/* 729 RPL_ENDOFQUIETLIST */ ":%s 729 %s %s q :End of Channel Quiet List",
/* 730 RPL_MONONLINE */ ":%s 730 %s :%s",
/* 731 RPL_MONOFFLINE */ ":%s 731 %s :%s",
/* 732 RPL_MONLIST */ ":%s 732 %s :%s",
Expand Down

0 comments on commit 51027be

Please sign in to comment.