/* $ModDesc: Provides more advanced UnrealIRCd SAMODE command */
-#include <stdio.h>
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "inspircd.h"
/** Handle /SAMODE
*/
while ((one = spaced.GetToken()) != "")
n.push_back(one);
- Event rmode((char *)&n, NULL, "send_mode_explicit");
+ Event rmode((char *)&n, NULL, "send_mode");
rmode.Send(ServerInstance);
n.clear();
/* XXX: Yes, this is right. We dont want to propogate the
* actual SAMODE command, just the MODE command generated
- * by the send_mode_explicit
+ * by the send_mode
*/
- return CMD_FAILURE;
+ return CMD_LOCALONLY;
}
else
{
cmd_samode* mycommand;
public:
ModuleSaMode(InspIRCd* Me)
- : Module::Module(Me)
+ : Module(Me)
{
mycommand = new cmd_samode(ServerInstance);
};
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
{
return new ModuleSaModeFactory;
}