mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 20:46:38 +02:00
removed sendto_helpops
This commit is contained in:
@@ -659,3 +659,4 @@
|
||||
- Fixed a memory leak in the new password code
|
||||
- Fixed a sptr->passwd bug
|
||||
- Removed the unnecessary param from IsULine() it is now just IsULine(sptr)
|
||||
- ircsprintf() is now used everywhere
|
||||
|
||||
+3
-3
@@ -2699,7 +2699,7 @@ int m_help(cptr, sptr, parc, parv)
|
||||
tmpl->next = helpign;
|
||||
helpign = tmpl;
|
||||
}
|
||||
sendto_helpops("from %s (HelpOp): %s", parv[0], message);
|
||||
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s (HelpOp): %s", parv[0], message);
|
||||
}
|
||||
else if (MyConnect(sptr))
|
||||
{
|
||||
@@ -2726,14 +2726,14 @@ int m_help(cptr, sptr, parc, parv)
|
||||
|
||||
sendto_serv_butone_token(IsServer(cptr) ? cptr : NULL,
|
||||
parv[0], MSG_HELP, TOK_HELP, "%s", message);
|
||||
sendto_helpops("from %s (Local): %s", parv[0], message);
|
||||
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s (Local): %s", parv[0], message);
|
||||
sendto_one(sptr, rpl_str(RPL_HELPFWD), me.name, parv[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendto_serv_butone_token(IsServer(cptr) ? cptr : NULL,
|
||||
parv[0], MSG_HELP, TOK_HELP, "%s", message);
|
||||
sendto_helpops("from %s: %s", parv[0], message);
|
||||
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s: %s", parv[0], message);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -2394,7 +2394,7 @@ int m_who(cptr, sptr, parc, parv)
|
||||
mychannel = NullChn;
|
||||
if (oper)
|
||||
{
|
||||
sendto_helpops("from %s: [Did a /who 0 o]", parv[0]);
|
||||
sendto_umode(UMODE_HELPOP, "*** HelpOp -- from %s: [Did a /who 0 o]", parv[0]);
|
||||
sendto_serv_butone(&me, ":%s HELP :[Did a /who 0 o]", parv[0]);
|
||||
}
|
||||
if (sptr->user)
|
||||
|
||||
-27
@@ -1287,33 +1287,6 @@ void sendto_failops(char *pattern, ...)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* sendto_helpops
|
||||
*
|
||||
* Send to mode +h people
|
||||
*/
|
||||
void sendto_helpops(char *pattern, ...)
|
||||
{
|
||||
va_list vl;
|
||||
aClient *cptr;
|
||||
int i;
|
||||
char nbuf[1024];
|
||||
|
||||
va_start(vl, pattern);
|
||||
for (i = 0; i <= highest_fd; i++)
|
||||
if ((cptr = local[i]) && !IsServer(cptr) && !IsMe(cptr) &&
|
||||
IsHelpOp(cptr))
|
||||
{
|
||||
(void)ircsprintf(nbuf, ":%s NOTICE %s :*** HelpOp -- ",
|
||||
me.name, cptr->name);
|
||||
(void)strncat(nbuf, pattern,
|
||||
sizeof(nbuf) - strlen(nbuf));
|
||||
vsendto_one(cptr, nbuf, vl);
|
||||
}
|
||||
va_end(vl);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* sendto_umode
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user