X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmode.h;h=84085a913a8d7ce40a1ed49f9d325620575582d4;hb=28de37791e17a1f1f3fd431969f5b6fd393eb73f;hp=467e7e2ae033ded7e052e0582c2626f579a0eda7;hpb=db7a49b071134cf3deadf05ce84fa6c7c46d80bf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/mode.h b/include/mode.h index 467e7e2ae..84085a913 100644 --- a/include/mode.h +++ b/include/mode.h @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -213,7 +213,7 @@ class CoreExport ModeHandler : public Extensible /** For user modes, return the current parameter, if any */ - std::string GetUserParameter(User* user); + virtual std::string GetUserParameter(User* useor); /** * Called when a mode change for your mode occurs. @@ -544,9 +544,14 @@ class CoreExport ModeParser : public classbase */ std::string ParaModeList(); - /** Generates the CHANMODES= 005 sequence + /** Generates a list of modes, comma seperated by type: + * 1; Listmodes EXCEPT those with a prefix + * 2; Modes that take a param when adding or removing + * 3; Modes that only take a param when adding + * 4; Modes that dont take a param */ - std::string ChanModes(); + std::string GiveModeList(ModeMasks m); + /** Used by this class internally during std::sort and 005 generation */ static bool PrefixComparison(prefixtype one, prefixtype two);