diff options
| author | 2020-04-09 18:06:50 +0100 | |
|---|---|---|
| committer | 2020-04-09 18:06:50 +0100 | |
| commit | e1ed9b275f465fbc235a23e416ba7626c7cba6cc (patch) | |
| tree | a0cda4ca3cf14e2731ada5cd6fc890eb90e80731 /src/modules/m_uninvite.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| parent | Set the minimum length to 1 for most config items with a default. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_uninvite.cpp')
| -rw-r--r-- | src/modules/m_uninvite.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp index 0ab1be44d..cb42f003a 100644 --- a/src/modules/m_uninvite.cpp +++ b/src/modules/m_uninvite.cpp @@ -30,6 +30,8 @@ enum { // InspIRCd-specific. + ERR_INVITEREMOVED = 494, + ERR_NOTINVITED = 505, RPL_UNINVITED = 653 }; @@ -91,14 +93,14 @@ class CommandUninvite : public Command // so they don't see where the target user is connected to if (!invapi->Remove(lu, c)) { - Numeric::Numeric n(505); + Numeric::Numeric n(ERR_NOTINVITED); n.SetServer(user->server); n.push(u->nick).push(c->name).push(InspIRCd::Format("Is not invited to channel %s", c->name.c_str())); user->WriteRemoteNumeric(n); return CMD_FAILURE; } - Numeric::Numeric n(494); + Numeric::Numeric n(ERR_INVITEREMOVED); n.SetServer(user->server); n.push(c->name).push(u->nick).push("Uninvited"); user->WriteRemoteNumeric(n); |
