summaryrefslogtreecommitdiff
path: root/modules/commands/os_login.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-25 04:19:15 -0400
committerAdam <Adam@anope.org>2011-09-25 04:19:15 -0400
commit1f2399de364c09adcce4193895cd362d80ffdfc5 (patch)
tree5f40fc531f22c174b6e10bb7bc12842a4a21d30b /modules/commands/os_login.cpp
parent43201ead9575a74e350710bc191f4ac67366aca7 (diff)
Added a new database format and sqlite support. Also moved db-convert to a module.
Diffstat (limited to 'modules/commands/os_login.cpp')
-rw-r--r--modules/commands/os_login.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_login.cpp b/modules/commands/os_login.cpp
index 57c172f7f..d08310424 100644
--- a/modules/commands/os_login.cpp
+++ b/modules/commands/os_login.cpp
@@ -32,7 +32,7 @@ class CommandOSLogin : public Command
source.Reply(_("No oper block for your nick."));
else if (o->password.empty())
source.Reply(_("Your oper block doesn't require logging in."));
- else if (source.u->GetExt("os_login_password_correct"))
+ else if (source.u->HasExt("os_login_password_correct"))
source.Reply(_("You are already identified."));
else if (o->password != password)
{
@@ -42,7 +42,7 @@ class CommandOSLogin : public Command
else
{
Log(LOG_ADMIN, source.u, this) << "and successfully identified to " << source.owner->nick;
- source.u->Extend("os_login_password_correct");
+ source.u->Extend("os_login_password_correct", NULL);
source.Reply(_("Password accepted."));
}
@@ -84,7 +84,7 @@ class OSLogin : public Module
{
if (!u->Account()->o->password.empty())
{
- if (u->GetExt("os_login_password_correct"))
+ if (u->HasExt("os_login_password_correct"))
return EVENT_ALLOW;
return EVENT_STOP;
}