- // Here is a sample of how to send servermodes. Note that unless remote
- // servers in your net are u:lined, they may reverse this, but its a
- // quick and effective modehack.
- char* modes[3];
- modes[0] = "#chatspike";
- modes[1] = "+o";
- modes[2] = user->nick;
-
- // run the mode change, send numerics (such as "no such channel") back
- // to "user".
- Srv->SendMode(modes,3,user);
-}
+ CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+ {
+ /* We dont have to worry about deleting 'r', the core will
+ * do it for us as required.*/
+ try
+ {
+ MyV6Resolver* r = new MyV6Resolver(Creator, "shake.stacken.kth.se", true);
+ ServerInstance->AddResolver(r);
+ r = new MyV6Resolver(Creator, "2001:6b0:1:ea:202:a5ff:fecd:13a6", false);
+ ServerInstance->AddResolver(r);
+ }
+ catch (ModuleException& e)
+ {
+ ServerInstance->Log(DEBUG,"Danger, will robinson! There was an exception: %s",e.GetReason());
+ }
+
+ return CMD_FAILURE;
+ }
+};