summaryrefslogtreecommitdiff
path: root/include/commands
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 10:57:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 10:57:25 +0000
commitd2be3310ba2cfb567f2cf0272a086b2961c86d6f (patch)
tree743e84c1bab0db4a58b44ff76e1227c23d54106a /include/commands
parentc24fcf728da0f04de9cc03b9ebbd5f85bab65081 (diff)
Add a call to the NICK handler that allows toggling of allowing invalid nicks to on or off.
Use it in ForceNickChange to allow forced nickchange of a nick to a uid. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7869 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/commands')
-rw-r--r--include/commands/cmd_nick.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h
index e0264407d..c27ed2035 100644
--- a/include/commands/cmd_nick.h
+++ b/include/commands/cmd_nick.h
@@ -26,6 +26,7 @@
*/
class cmd_nick : public command_t
{
+ bool allowinvalid;
public:
/** Constructor for nick.
*/
@@ -37,6 +38,8 @@ class cmd_nick : public command_t
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
+
+ CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> &parameters);
};
#endif