mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Move the wallops mode from the core into core_wallops
This commit is contained in:
parent
f2db4b743f
commit
7b7e82bec5
@ -176,13 +176,3 @@ class ModeUserOperator : public ModeHandler
|
||||
ModeUserOperator();
|
||||
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding);
|
||||
};
|
||||
|
||||
/** User mode +w
|
||||
*/
|
||||
class ModeUserWallops : public SimpleUserModeHandler
|
||||
{
|
||||
public:
|
||||
ModeUserWallops() : SimpleUserModeHandler(NULL, "wallops", 'w')
|
||||
{
|
||||
}
|
||||
};
|
||||
|
@ -24,14 +24,14 @@
|
||||
*/
|
||||
class CommandWallops : public Command
|
||||
{
|
||||
UserModeReference wallopsmode;
|
||||
SimpleUserModeHandler wallopsmode;
|
||||
|
||||
public:
|
||||
/** Constructor for wallops.
|
||||
*/
|
||||
CommandWallops(Module* parent)
|
||||
: Command(parent, "WALLOPS", 1, 1)
|
||||
, wallopsmode(parent, "wallops")
|
||||
, wallopsmode(parent, "wallops", 'w')
|
||||
{
|
||||
flags_needed = 'o';
|
||||
syntax = "<any-text>";
|
||||
|
@ -933,7 +933,6 @@ struct builtin_modes
|
||||
ModeChannelOp o;
|
||||
ModeChannelVoice v;
|
||||
|
||||
ModeUserWallops uw;
|
||||
ModeUserInvisible ui;
|
||||
ModeUserOperator uo;
|
||||
ModeUserServerNoticeMask us;
|
||||
@ -941,7 +940,7 @@ struct builtin_modes
|
||||
void init()
|
||||
{
|
||||
ServiceProvider* modes[] = { &s, &p, &m, &t, &n, &i, &k, &l, &b, &o, &v,
|
||||
&uw, &ui, &uo, &us };
|
||||
&ui, &uo, &us };
|
||||
ServerInstance->Modules->AddServices(modes, sizeof(modes)/sizeof(ServiceProvider*));
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user