#include "modes/umode_i.h"
/* +o (operator) */
#include "modes/umode_o.h"
+/* +n (notice mask - our implementation of snomasks) */
+#include "modes/umode_n.h"
extern int MODCOUNT;
extern std::vector<Module*> modules;
{
/* Display user's current mode string */
WriteServ(user->fd,"221 %s :+%s",targetuser->nick,targetuser->FormatModes());
+ WriteServ(user->fd, "008 %s :+%s", targetuser->nick, targetuser->FormatNoticeMasks());
return;
}
+
/* No such nick/channel */
WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, text);
return;
}
-void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool servermode)
+void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool servermode)
{
std::string target = parameters[0];
ModeType type = MODETYPE_USER;
*/
if ((type== MODETYPE_CHANNEL) && (pcnt == 2))
{
- char* mode = parameters[1];
+ const char* mode = parameters[1];
if (*mode == '+')
mode++;
}
-void cmd_mode::Handle (char **parameters, int pcnt, userrec *user)
+void cmd_mode::Handle (const char** parameters, int pcnt, userrec *user)
{
if (!user)
return;
this->AddMode(new ModeUserWallops, 'w');
this->AddMode(new ModeUserInvisible, 'i');
this->AddMode(new ModeUserOperator, 'o');
-
- /* TODO: User modes +swio */
+ this->AddMode(new ModeUserServerNoticeMask, 'n');
}