summaryrefslogtreecommitdiff
path: root/modules/commands/hs_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
committerAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
commitd33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch)
tree7b2274cc833c793c0f5595660cbd4d715de52ffd /modules/commands/hs_set.cpp
parent368d469631763e9c8bf399980d0ac7c5b5664d39 (diff)
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each other
Diffstat (limited to 'modules/commands/hs_set.cpp')
-rw-r--r--modules/commands/hs_set.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/commands/hs_set.cpp b/modules/commands/hs_set.cpp
index 2189f2483..bb4091da4 100644
--- a/modules/commands/hs_set.cpp
+++ b/modules/commands/hs_set.cpp
@@ -27,7 +27,7 @@ class CommandHSSet : public Command
const Anope::string &nick = params[0];
- NickAlias *na = findnick(nick);
+ NickAlias *na = NickAlias::Find(nick);
if (na == NULL)
{
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
@@ -55,12 +55,12 @@ class CommandHSSet : public Command
if (!user.empty())
{
- if (!ircdproto->CanSetVIdent)
+ if (!IRCD->CanSetVIdent)
{
source.Reply(HOST_NO_VIDENT);
return;
}
- else if (!IsValidIdent(user))
+ else if (!IRCD->IsIdentValid(user))
{
source.Reply(HOST_SET_IDENT_ERROR);
return;
@@ -73,7 +73,7 @@ class CommandHSSet : public Command
return;
}
- if (!IsValidHost(host))
+ if (!IRCD->IsHostValid(host))
{
source.Reply(HOST_SET_ERROR);
return;
@@ -108,7 +108,7 @@ class CommandHSSetAll : public Command
if (!na || !na->HasVhost())
return;
- for (std::list<serialize_obj<NickAlias> >::const_iterator it = na->nc->aliases.begin(), it_end = na->nc->aliases.end(); it != it_end;)
+ for (std::list<Serialize::Reference<NickAlias> >::const_iterator it = na->nc->aliases.begin(), it_end = na->nc->aliases.end(); it != it_end;)
{
NickAlias *nick = *it++;
if (nick)
@@ -128,7 +128,7 @@ class CommandHSSetAll : public Command
Anope::string nick = params[0];
- NickAlias *na = findnick(nick);
+ NickAlias *na = NickAlias::Find(nick);
if (na == NULL)
{
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
@@ -156,12 +156,12 @@ class CommandHSSetAll : public Command
if (!user.empty())
{
- if (!ircdproto->CanSetVIdent)
+ if (!IRCD->CanSetVIdent)
{
source.Reply(HOST_NO_VIDENT);
return;
}
- else if (!IsValidIdent(user))
+ else if (!IRCD->IsIdentValid(user))
{
source.Reply(HOST_SET_IDENT_ERROR);
return;
@@ -174,7 +174,7 @@ class CommandHSSetAll : public Command
return;
}
- if (!IsValidHost(host))
+ if (!IRCD->IsHostValid(host))
{
source.Reply(HOST_SET_ERROR);
return;