summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 11:03:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 11:03:32 +0000
commiteb12142b8d05d545102b8222d9af12ca1746b405 (patch)
treece8c4e146ad2414231edd684315f6e7ed10b4590 /include
parentc3f6fdd8a73ec7c8fd73f8a3cbcaa0b9aae234ad (diff)
Initialise cmd_nick::allowinvalid in constructor init-list, and document HandleInternal (now two commands that use this, cmd_whowas and this one)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7871 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/commands/cmd_nick.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h
index c27ed2035..6b361c9c0 100644
--- a/include/commands/cmd_nick.h
+++ b/include/commands/cmd_nick.h
@@ -30,7 +30,7 @@ class cmd_nick : public command_t
public:
/** Constructor for nick.
*/
- cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true) { syntax = "<newnick>"; }
+ cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true), allowinvalid(false) { syntax = "<newnick>"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
@@ -39,6 +39,11 @@ class cmd_nick : public command_t
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
+ /** Handle internal command
+ * @param id Used to indicate if invalid nick changes are allowed.
+ * Set to 1 to allow invalid nicks and 0 to deny them.
+ * @param parameters Currently unused
+ */
CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> &parameters);
};