X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fusermanager.h;h=a807cd447b57de70db5f0d5118042f526eb064bc;hb=11916574f67962dce1d7a2fdf7ef6a3d2d1fa49f;hp=50dac27bf9b267754ae2330fcb34a1652030d314;hpb=f2febe8ff61766f1b57305fae873071de4526d58;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/usermanager.h b/include/usermanager.h index 50dac27bf..a807cd447 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -102,10 +102,10 @@ class CoreExport UserManager /** Disconnect a user gracefully * @param user The user to remove * @param quitreason The quit reason to show to normal users - * @param operreason The quit reason to show to opers + * @param operreason The quit reason to show to opers, can be NULL if same as quitreason * @return Although this function has no return type, on exit the user provided will no longer exist. */ - void QuitUser(User *user, const std::string &quitreason, const char* operreason = ""); + void QuitUser(User* user, const std::string& quitreason, const std::string* operreason = NULL); /** Add a user to the local clone map * @param user The user to add @@ -161,10 +161,6 @@ class CoreExport UserManager */ unsigned int LocalUserCount() const { return (this->local_count - this->UnregisteredUserCount()); } - /** Number of users with a certain mode set on them - */ - int ModeCount(const char mode); - /** Send a server notice to all local users * @param text The text format string to send * @param ... The format arguments