summaryrefslogtreecommitdiff
path: root/modules/protocol/ngircd.cpp
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@lodoss.net>2013-08-22 14:38:35 +0100
committerFederico G. Schwindt <fgsch@lodoss.net>2013-08-25 04:54:35 +0100
commit76f5d4b31606312531f013682aec5726d0859ba3 (patch)
tree3d51d6a9b749338989978c86702ca24bdd420b5c /modules/protocol/ngircd.cpp
parent9b59925144f32e1ac953d7812a3dd1444207c437 (diff)
Sort parameters and correct comments
Diffstat (limited to 'modules/protocol/ngircd.cpp')
-rw-r--r--modules/protocol/ngircd.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index 6aa36f8a0..a604792e1 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -315,15 +315,15 @@ struct IRCDMessageMetadata : IRCDMessage
*
* params[0] = nick of the user
* params[1] = command
- * params[3] = data
+ * params[2] = data
*
* following commands are supported:
* - "accountname": the account name of a client (can't be empty)
+ * - "certfp": the certificate fingerprint of a client (can't be empty)
+ * - "cloakhost" : the cloaked hostname of a client
* - "host": the hostname of a client (can't be empty)
- * - "cloakhost" : the cloaked hostname of a client
* - "info": info text ("real name") of a client
* - "user": the user name (ident) of a client (can't be empty)
- * - "certfp": the certificate fingerprint of a client
*/
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
@@ -340,15 +340,20 @@ struct IRCDMessageMetadata : IRCDMessage
if (nc)
u->Login(nc);
}
- else if (params[1].equals_cs("host"))
+ else if (params[1].equals_cs("certfp"))
{
- u->SetCloakedHost(params[2]);
+ u->fingerprint = params[2];
+ FOREACH_MOD(OnFingerprint, (u));
}
else if (params[1].equals_cs("cloakhost"))
{
if (!params[2].empty())
u->SetDisplayedHost(params[2]);
}
+ else if (params[1].equals_cs("host"))
+ {
+ u->SetCloakedHost(params[2]);
+ }
else if (params[1].equals_cs("info"))
{
u->SetRealname(params[2]);
@@ -357,11 +362,6 @@ struct IRCDMessageMetadata : IRCDMessage
{
u->SetVIdent(params[2]);
}
- else if (params[1].equals_cs("certfp"))
- {
- u->fingerprint = params[2];
- FOREACH_MOD(OnFingerprint, (u));
- }
}
};