hi,
in first place i planned to write a little tcl-script for missing chan-modes, but maybe its not so hard to add modes by patching the source. i just need some info about those values:
for example:
#define CHANNOCLR 0x0400 /* +c -- bahamut */
#define CHANREGON 0x0800 /* +R -- bahamut */
#define CHANMODR 0x1000 /* +M -- bahamut */
...
is 0x0400 used by the server or is it an internal eggdrop-value?
and if its just an internal value (i guess then its some sort of priority), what is important when defining such a value?
As far as I can tell (after a quick skim of the code) these values are only used within eggdrop itself (the modes are passed to eggdrop in text format). Each one of the modes is a single bit, so that it can be tested against with just an and - this also means there is only one left.
If the above means nothing to you, give up now.
However I will warn you that you are entering a world of pain. For starters you will not be able to update your eggdrop again, without getting the new source and re-patching it, for starters (and just you wait till version 1.7 appears) - and thats not even mentioning the task which you have set yourself - you have to monitor the mode as well as set it, remember...
I would heartily reccomend doing it as a script - if you really want to code in C, do it as a module - its easy enough to do, doesnt really warrant having to hack the bot, and I guarantee will be done one heck of a lot quicker, and be more stable in the end.
There is currently no module interface to add new modes. You have to patch the source. 1.7 will (hopefully) introduce new mode parsing code which will not require eggdrop to have the (meaning of a) mode hard-coded. As for the required steps for adding a new mode to the source, have a look at http://www.eggheads.org/pub_archive/cha ... 01060.html .