diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-08 11:48:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-08 11:48:35 +0000 |
commit | 571dedb3ac80fc356208edf12143de0a7a43eee0 (patch) | |
tree | 139f11d0f9052134e9c6d8a3e01ecb61132b88a3 /src | |
parent | fad82c2e0d400aee8c11a51962cf0a522efa5d66 (diff) |
Update comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5458 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_testcommand.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index 5816b20a0..4d9d2d6df 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -52,6 +52,7 @@ class MyV6Resolver : public Resolver class cmd_woot : public command_t { public: + /* Command 'woot', takes no parameters and needs no special modes */ cmd_woot (InspIRCd* Instance) : command_t(Instance,"WOOT", 0, 0) { this->source = "m_testcommand.so"; @@ -61,7 +62,6 @@ class cmd_woot : public command_t { /* We dont have to worry about deleting 'r', the core will * do it for us as required.*/ - try { MyV6Resolver* r = new MyV6Resolver("shake.stacken.kth.se", true); @@ -86,12 +86,7 @@ class ModuleTestCommand : public Module : Module::Module(Me) { - // Create a new command: - // command will be called /WOOT, and will - // call handle_woot when triggered, the - // 0 in the modes parameter signifies that - // anyone can issue the command, and the - // command takes only one parameter. + // Create a new command newcommand = new cmd_woot(ServerInstance); ServerInstance->AddCommand(newcommand); } @@ -103,12 +98,14 @@ class ModuleTestCommand : public Module virtual void OnUserJoin(userrec* user, chanrec* channel) { + /* This is an example, we do nothing here */ } virtual ~ModuleTestCommand() { + delete newcommand; } - + virtual Version GetVersion() { return Version(1, 0, 0, 0, VF_VENDOR, API_VERSION); |