summaryrefslogtreecommitdiff
path: root/modules/extra/hs_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/hs_request.cpp')
-rw-r--r--modules/extra/hs_request.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/extra/hs_request.cpp b/modules/extra/hs_request.cpp
index 6f9111b5e..3a1237328 100644
--- a/modules/extra/hs_request.cpp
+++ b/modules/extra/hs_request.cpp
@@ -67,19 +67,19 @@ class CommandHSRequest : public Command
}
if (vIdent.length() > Config->UserLen)
{
- source.Reply(HOST_SET_IDENTTOOLONG, Config->UserLen);
+ source.Reply(LanguageString::HOST_SET_IDENTTOOLONG, Config->UserLen);
return MOD_CONT;
}
else
for (Anope::string::iterator s = vIdent.begin(), s_end = vIdent.end(); s != s_end; ++s)
if (!isvalidchar(*s))
{
- source.Reply(HOST_SET_IDENT_ERROR);
+ source.Reply(LanguageString::HOST_SET_IDENT_ERROR);
return MOD_CONT;
}
if (!ircd->vident)
{
- source.Reply(HOST_NO_VIDENT);
+ source.Reply(LanguageString::HOST_NO_VIDENT);
return MOD_CONT;
}
}
@@ -87,13 +87,13 @@ class CommandHSRequest : public Command
hostmask = rawhostmask;
else
{
- source.Reply(HOST_SET_TOOLONG, Config->HostLen);
+ source.Reply(LanguageString::HOST_SET_TOOLONG, Config->HostLen);
return MOD_CONT;
}
if (!isValidHost(hostmask, 3))
{
- source.Reply(HOST_SET_ERROR);
+ source.Reply(LanguageString::HOST_SET_ERROR);
return MOD_CONT;
}
@@ -167,7 +167,7 @@ class CommandHSActivate : public Command
me->SendMessage(source, _("No request for nick %s found."), nick.c_str());
}
else
- u->SendMessage(HostServ, NICK_X_NOT_REGISTERED, nick.c_str());
+ u->SendMessage(HostServ, LanguageString::NICK_X_NOT_REGISTERED, nick.c_str());
return MOD_CONT;
}
@@ -222,7 +222,7 @@ class CommandHSReject : public Command
if (!reason.empty())
snprintf(message, sizeof(message), _("[auto memo] Your requested vHost has been rejected. Reason: %s"), reason.c_str());
else
- snprintf(message, sizeof(message), _("[auto memo] Your requested vHost has been rejected."));
+ snprintf(message, sizeof(message), "%s", _("[auto memo] Your requested vHost has been rejected."));
memo_send(source, nick, message, 2);
}
@@ -269,13 +269,13 @@ class HSListBase : public Command
{
++display_counter;
if (!hr->ident.empty())
- u->SendMessage(HostServ, HOST_IDENT_ENTRY, counter, it->first.c_str(), hr->ident.c_str(), hr->host.c_str(), it->first.c_str(), do_strftime(hr->time).c_str());
+ u->SendMessage(HostServ, _("#%d Nick:\002%s\002, vhost:\002%s\002@\002%s\002 (%s - %s)"), counter, it->first.c_str(), hr->ident.c_str(), hr->host.c_str(), it->first.c_str(), do_strftime(hr->time).c_str());
else
- u->SendMessage(HostServ, HOST_ENTRY, counter, it->first.c_str(), hr->host.c_str(), it->first.c_str(), do_strftime(hr->time).c_str());
+ u->SendMessage(HostServ, _("#%d Nick:\002%s\002, vhost:\002%s\002 (%s - %s)"), counter, it->first.c_str(), hr->host.c_str(), it->first.c_str(), do_strftime(hr->time).c_str());
}
++counter;
}
- u->SendMessage(HostServ, HOST_LIST_FOOTER, display_counter);
+ u->SendMessage(HostServ, _("Displayed all records (Count: \002%d\002)"), display_counter);
return MOD_CONT;
}