X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Fusers.h;h=4c8df549dce07346a6b09a0a640215de38697c13;hb=bb4aa10ed82612624da45d0c9592ddf7f2f51ab5;hp=29c573daaf39faeac0ab512ea6ed78fb510694dd;hpb=8db52f66a2ff587457c34889b31e7ef70876c7fa;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/users.h b/include/users.h index 29c573daa..4c8df549d 100644 --- a/include/users.h +++ b/include/users.h @@ -418,10 +418,12 @@ class CoreExport User : public Extensible */ bool IsNoticeMaskSet(unsigned char sm); - /** Create a displayable mode string for this users umodes - * @param showparameters The mode string + /** Get the mode letters of modes set on the user as a string. + * @param includeparams True to get the parameters of the modes as well. Defaults to false. + * @return Mode letters of modes set on the user and optionally the parameters of those modes, if any. + * The returned string always begins with a '+' character. If the user has no modes set, "+" is returned. */ - const char* FormatModes(bool showparameters = false); + std::string GetModeLetters(bool includeparams = false) const; /** Returns true if a specific mode is set * @param m The user mode @@ -715,7 +717,7 @@ class CoreExport User : public Extensible /** Default destructor */ virtual ~User(); - virtual CullResult cull(); + virtual CullResult cull() CXX11_OVERRIDE; }; class CoreExport UserIOHandler : public StreamSocket @@ -740,7 +742,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node