From: Michael Poole Date: Mon, 28 Mar 2005 02:27:24 +0000 (+0000) Subject: Avoid sending numeric oplevels when forwarding a -A channel's burst. X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=1fad4bed4767b8b524746f8e3e84251cd711f938;p=ircu2.10.12-pk.git Avoid sending numeric oplevels when forwarding a -A channel's burst. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1342 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 8f960c3..8f660ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-03-27 Michael Poole + + * ircd/m_burst.c (ms_burst): Do not send numeric oplevels in a -A + channel when forwarding a channel burst line. + 2005-03-25 Michael Poole * ircd/m_server.c (set_server_flags): New function. Unlike the diff --git a/ircd/m_burst.c b/ircd/m_burst.c index 0e2d613..622b315 100644 --- a/ircd/m_burst.c +++ b/ircd/m_burst.c @@ -472,7 +472,12 @@ int ms_burst(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) if (current_mode & CHFL_VOICE) nickstr[nickpos++] = 'v'; if (current_mode & CHFL_CHANOP) - nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - nickpos, "%u", oplevel); + { + if (chptr->mode.apass[0]) + nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - nickpos, "%u", oplevel); + else + nickstr[nickpos++] = 'o'; + } } else if (current_mode & CHFL_CHANOP && oplevel != last_oplevel) { /* if just op level changed... */ nickstr[nickpos++] = ':'; /* add a specifier */ nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - nickpos, "%u", oplevel - last_oplevel);