1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 02:33:13 +02:00

Fixed compile errors on release build

This commit is contained in:
Adam
2011-10-18 12:06:51 -04:00
parent faea45245d
commit eb5b5f97d1
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ class CommandCSInfo : public Command
}
if (ci->HasFlag(CI_SUSPENDED))
{
Anope::string *by = ci->GetExt<Anope::string *>("suspend_by"), *reason = ci->GetExt<Anope::string *>("suspend_reason");
Anope::string *by = ci->GetExt<ExtensibleString *>("suspend_by"), *reason = ci->GetExt<ExtensibleString *>("suspend_reason");
if (by != NULL)
source.Reply(_(" Suspended: [%s] %s"), by->c_str(), (reason && !reason->empty() ? reason->c_str() : NO_REASON));
}
+1 -1
View File
@@ -167,7 +167,7 @@ class CommandCSUnSuspend : public Command
return;
}
Anope::string *by = ci->GetExt<Anope::string *>("suspend_by"), *reason = ci->GetExt<Anope::string *>("suspend_reason");
Anope::string *by = ci->GetExt<ExtensibleString *>("suspend_by"), *reason = ci->GetExt<ExtensibleString *>("suspend_reason");
if (by != NULL)
Log(LOG_ADMIN, u, this, ci) << " which was suspended by " << *by << " for: " << (reason && !reason->empty() ? *reason : "No reason");
+2 -2
View File
@@ -46,7 +46,7 @@ class CommandNSConfirm : public Command
}
else if (u->Account())
{
Anope::string *code = u->Account()->GetExt<Anope::string *>("ns_register_passcode");
Anope::string *code = u->Account()->GetExt<ExtensibleString *>("ns_register_passcode");
if (code != NULL && *code == passcode)
{
u->Account()->Shrink("ns_register_passcode");
@@ -324,7 +324,7 @@ class NSRegister : public Module
static bool SendRegmail(User *u, NickAlias *na, BotInfo *bi)
{
Anope::string *code = na->nc->GetExt<Anope::string *>("ns_register_passcode");
Anope::string *code = na->nc->GetExt<ExtensibleString *>("ns_register_passcode");
Anope::string codebuf;
if (code == NULL)
{
+1 -1
View File
@@ -163,7 +163,7 @@ class NSSetEmail : public Module
User *u = source.u;
if (command->name == "nickserv/confirm" && !params.empty() && u->IsIdentified())
{
Anope::string *new_email = u->Account()->GetExt<Anope::string *>("ns_set_email"), *passcode = u->Account()->GetExt<Anope::string *>("ns_set_email_passcode");
Anope::string *new_email = u->Account()->GetExt<ExtensibleString *>("ns_set_email"), *passcode = u->Account()->GetExt<ExtensibleString *>("ns_set_email_passcode");
if (new_email && passcode)
{
if (params[0] == *passcode)
+1 -1
View File
@@ -767,7 +767,7 @@ class DBPlain : public Module
db_buffer << "MD FLAGS " << ci->ToString() << endl;
if (ci->HasFlag(CI_SUSPENDED))
{
Anope::string *by = ci->GetExt<Anope::string *>("suspend_by"), *reason = ci->GetExt<Anope::string *>("suspend_reason");
Anope::string *by = ci->GetExt<ExtensibleString *>("suspend_by"), *reason = ci->GetExt<ExtensibleString *>("suspend_reason");
if (by && reason)
db_buffer << "MD SUSPEND " << *by << " :" << *reason << endl;
}
+1 -1
View File
@@ -322,7 +322,7 @@ class InspircdIRCdMessage : public IRCdMessage
user->SetCloakedHost(params[3]);
NickAlias *na = findnick(user->nick);
Anope::string *svidbuf = na ? na->nc->GetExt<Anope::string *>("authenticationtoken") : NULL;
Anope::string *svidbuf = na ? na->nc->GetExt<ExtensibleString *>("authenticationtoken") : NULL;
if (na && svidbuf && *svidbuf == params[0])
{
user->Login(na->nc);