1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 16:06:37 +02:00

- Fixed problem with oper as chanadmin kicking himself causing an operoverride notice,

reported by Bock (as part of #2889).
- Fixed desynch problem with +Q, reported by tabrisnet (#0002992).
- Updated doc/coding-guidelines
- Added bugs.* url to /info, was still showing some email address.
This commit is contained in:
Bram Matthys
2006-08-03 10:44:55 +00:00
parent f5b302c007
commit 21eb4e5b5d
3 changed files with 11 additions and 2 deletions
+4
View File
@@ -179,6 +179,8 @@ CMD_FUNC(m_kick)
{
if (!op_can_override(sptr))
{
if (!MyClient(sptr))
goto attack; /* lag? yes.. kick crossing +Q... allow */
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND),
me.name, sptr->name, "KICK",
"channel is +Q");
@@ -219,6 +221,8 @@ CMD_FUNC(m_kick)
/* victim is +a or +q, we are not +q */
if ((who_flags & (CHFL_CHANOWNER|CHFL_CHANPROT) || IsServices(who))
&& !(sptr_flags & CHFL_CHANOWNER)) {
if (sptr == who)
goto attack; /* kicking self == ok */
if (op_can_override(sptr)) /* (and f*ck local ops) */
{ /* IRCop kicking owner/prot */
sendto_snomask(SNO_EYES,