From eb12142b8d05d545102b8222d9af12ca1746b405 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Aug 2007 11:03:32 +0000 Subject: 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 --- include/commands/cmd_nick.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/commands') 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 = ""; } + cmd_nick (InspIRCd* Instance) : command_t(Instance,"NICK",0,1,true), allowinvalid(false) { syntax = ""; } /** 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 ¶meters); }; -- cgit v1.2.3