YooHoo wrote:Hal wrote:is it possible to make a egg support for such flag?
flag is added to channel with hostmask of people allowed to recived op from server in case of chan bacome opless.
example:
14:41:05 -!- mode/#testchan [+R *!
test@somwhere.at.net] by nikt
in i use
bind mode it shows me everithing but
victim is empty for this mode.
Eggdrop lets you add as many new flags as there aren't used.
Set newflag[num] z
where [num] is a number that doesn't exists...
Johoho's Guide to tcl touches on this subject in 'easy to understand' layman's terms.
while your remark is valid, I think that guy had another thing in mind... he actually talked about a channel mode, somewhat confusingly calling it "channel flag"
introducing new chanmodes in eggdrop is hard
I mean, all chanmode processing is hardcoded (src/mod/irc.mod/mode.c, gotmode() function), so introducing IRCnet's +R would have to substitute the already existent +R handler - for eggdrop, +R means a channel that is accessible to registered nicks only (DALnet and the like) - that's why on triggering bind mode for +R your
victim parameter is empty - because DALnet's +R doesn't include a parameter
so, to make your eggdrop IRCnet+R-aware, you have to patch it accordingly, sacrificing its DALnet compatibility (that means you can't run the same handling +R binary on DALnet and IRCnet)
needless to say, that's not flexible at all - I mean eggdrop's chanmode handling design - and in that regard, much can be learned and borrowed from modern ircd's, which allow for easy definition and implementing handlers for new chanmodes