1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 00:43:13 +02:00

Converted a bunch of notices to numerics

This commit is contained in:
codemastr
2004-06-23 19:47:40 +00:00
parent 1671c330bf
commit c4ee6e5114
6 changed files with 221 additions and 277 deletions
+15 -21
View File
@@ -161,10 +161,9 @@ CMD_FUNC(m_kick)
{
if (!IsNetAdmin(sptr))
{
sendto_one(sptr,
":%s %s %s :*** Cannot kick %s from channel %s (usermode +q)",
me.name, IsWebTV(sptr) ? "PRIVMSG" : "NOTICE", sptr->name,
who->name, chptr->chname);
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND),
me.name, sptr->name, "KICK",
"user is +q");
sendto_one(who,
":%s %s %s :*** Q: %s tried to kick you from channel %s (%s)",
me.name, IsWebTV(who) ? "PRIVMSG" : "NOTICE", who->name,
@@ -178,10 +177,9 @@ CMD_FUNC(m_kick)
{
if (!op_can_override(sptr))
{
sendto_one(sptr,
":%s %s %s :*** You cannot kick people on %s",
me.name, IsWebTV(sptr) ? "PRIVMSG" : "NOTICE", sptr->name,
chptr->chname);
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND),
me.name, sptr->name, "KICK",
"channel is +Q");
goto deny;
}
sendto_snomask(SNO_EYES,
@@ -235,10 +233,9 @@ CMD_FUNC(m_kick)
}
else if (!IsULine(sptr) && (who != sptr) && MyClient(sptr))
{
sendto_one(sptr,
":%s %s %s :*** You cannot kick %s from %s because %s is channel admin",
me.name, IsWebTV(sptr) ? "PRIVMSG" : "NOTICE", sptr->name,
who->name, chptr->chname, who->name);
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND),
me.name, sptr->name, "KICK",
"user is a channel admin");
goto deny;
continue;
} /* chanprot/chanowner */
@@ -248,9 +245,9 @@ CMD_FUNC(m_kick)
if ((who_flags & CHFL_ISOP) && (sptr_flags & CHFL_HALFOP)
&& !(sptr_flags & CHFL_ISOP) && !IsULine(sptr) && MyClient(sptr))
{
sendto_one(sptr,
":%s %s %s :*** You cannot kick channel operators on %s if you only are halfop",
me.name, IsWebTV(sptr) ? "PRIVMSG" : "NOTICE", sptr->name, chptr->chname);
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND),
me.name, sptr->name, "KICK",
"user is a channel operator");
goto deny;
}
@@ -258,9 +255,9 @@ CMD_FUNC(m_kick)
if ((who_flags & CHFL_HALFOP) && (sptr_flags & CHFL_HALFOP)
&& !(sptr_flags & CHFL_ISOP) && MyClient(sptr))
{
sendto_one(sptr,
":%s %s %s :*** You cannot kick channel halfops on %s if you only are halfop",
me.name, IsWebTV(sptr) ? "PRIVMSG" : "NOTICE", sptr->name, chptr->chname);
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND),
me.name, sptr->name, "KICK",
"user is a halfop");
goto deny;
} /* halfop */
@@ -268,9 +265,6 @@ CMD_FUNC(m_kick)
goto attack;
deny:
sendto_one(sptr,
err_str(ERR_ATTACKDENY), me.name,
parv[0], chptr->chname, user);
continue;
attack: