1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 17:03:12 +02:00

Dumbass bug...

This commit is contained in:
griever
2001-12-20 20:33:16 +00:00
parent 68bfeffa70
commit 3a482d26ca
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -1000,3 +1000,4 @@ seen. gmtime warning still there
- TKL mods compile and run fine, set{} stuff to decide what funcs are
avail forthcoming
- SMO recoded but wierd because sendto_umode and sendto_snomask are wierd
- chatops actually checks if sender is an oper, why did no one notice this?
+7
View File
@@ -3198,6 +3198,13 @@ int m_chatops(cptr, sptr, parc, parv)
me.name, parv[0], "CHATOPS");
return 0;
}
if (MyClient(sptr) && !IsAnOper(cptr))
{
sendto_one(sptr, err_str(ERR_NOPRIVELEGES), me.name, sptr->name);
return 0;
}
sendto_serv_butone_token(IsServer(cptr) ? cptr : NULL,
parv[0], MSG_CHATOPS, TOK_CHATOPS, ":%s", message);
sendto_umode(UMODE_OPER, "*** ChatOps -- from %s: %s",