164 |
|
|
165 |
|
if (ms->flags & CHFL_CHANOP) |
166 |
|
++tlen; |
167 |
– |
#ifdef HALFOPS |
167 |
|
if (ms->flags & CHFL_HALFOP) |
168 |
|
++tlen; |
169 |
< |
#endif |
171 |
< |
if (ms->flags & CHFL_VOICE) |
169 |
> |
ifs (ms->flags & CHFL_VOICE) |
170 |
|
++tlen; |
171 |
|
|
172 |
|
/* |
173 |
|
* Space will be converted into CR, but we also need space for LF.. |
174 |
< |
* That's why we use '- 1' here -adx |
174 |
> |
* That's why we use '- 1' here -adx |
175 |
|
*/ |
176 |
|
if (t + tlen - buf > IRCD_BUFSIZE - 1) |
177 |
|
{ |
182 |
|
|
183 |
|
if (ms->flags & CHFL_CHANOP) |
184 |
|
*t++ = '@'; |
187 |
– |
#ifdef HALFOPS |
185 |
|
if (ms->flags & CHFL_HALFOP) |
186 |
|
*t++ = '%'; |
190 |
– |
#endif |
187 |
|
if (ms->flags & CHFL_VOICE) |
188 |
|
*t++ = '+'; |
189 |
|
|
212 |
|
{ |
213 |
|
const dlink_node *ptr = NULL; |
214 |
|
char pbuf[IRCD_BUFSIZE] = ""; |
215 |
< |
int tlen, mlen, cur_len, count = 0; |
215 |
> |
int tlen, mlen, cur_len; |
216 |
|
char *pp = pbuf; |
217 |
|
|
218 |
|
if (top->length == 0) |
240 |
|
|
241 |
|
cur_len = mlen; |
242 |
|
pp = pbuf; |
247 |
– |
count = 0; |
243 |
|
} |
244 |
|
|
250 |
– |
count++; |
245 |
|
pp += sprintf(pp, "%s!%s@%s ", banptr->name, banptr->user, |
246 |
|
banptr->host); |
247 |
|
cur_len += tlen; |
538 |
|
*p++ = '@'; |
539 |
|
} |
540 |
|
|
547 |
– |
#ifdef HALFOPS |
541 |
|
if (ms->flags & CHFL_HALFOP) |
542 |
|
{ |
543 |
|
if (!combine) |
544 |
|
return "%"; |
545 |
|
*p++ = '%'; |
546 |
|
} |
554 |
– |
#endif |
547 |
|
|
548 |
|
if (ms->flags & CHFL_VOICE) |
549 |
|
*p++ = '+'; |