hello,
i'm new to anope module coding, so trying to study it.
i'm trying to add my service with some command that i would like it to be triggered from within channel by users, using !cmd. (now i know some of you may reply, use eggdrop for it, i might just do that eventually, but i would still like to understand the anope service module coding "internals")
i went over the 2 tutorials on wiki, read them, and tried to "study" from other modules written by other posted on site. i was looking @ vhostserv module code, that had support for !vhost command trigger in his code.
what i fail to understand is what is exactly the porpuse of the createMessage() function & the moduleAddMessage() function.
as in his code for example i see:
under AnopeInit() ,placed a call to createMessage, where inside that createMessage function placed name of a "mid function" that from there calling to another function that check for command using myStrGetToken() function.
(that i assume split for " " & the 0 gets the first bit after split.)
would appreciate any help, sorry if it's being n00b question. i tried to search for answer, & browse forum, and couldn't find my answer...
[Edited on 16-10-2007 by tazmania]