it works fine for the first few modes but not for the channel modes that have a second parameter like:
+k secretkey
it wont accept a mode #channel -k
it needs the key as well to get removed
it wont accept a mode #channel -k key
using this atm:
Code: Select all
bind pub -|- .unlock pub:checkcmodez
proc pub:checkcmodez {nick host hand chan text} {
if { [string first R [getchanmode $chan]] != -1} { pushmode $chan -R }
if { [string first i [getchanmode $chan]] != -1} { pushmode $chan -i }
if { [string first M [getchanmode $chan]] != -1} { pushmode $chan -M }
if { [string first l [getchanmode $chan]] != -1} { pushmode $chan -l }
if { [string first k [getchanmode $chan]] != -1} { pushmode $chan -k }
}
also when using the [getchanmode $chan]
it doesnt seem to show all set cjannelmodes
for example i have set this on channel:
+BCEFGJPTUWfjknrtx block:30:90 ~1:10 3:3 5 c4:2 ~3:2 4:2 jhjhd 1:10:10
yet [getchanmode $chan] shows just : +CtrTnkl jhjhd 33
whats the reason for that is it the channelmodes arent part of what eggdrop recognizes as its default core channel modes and if so would there be a way to display all parameters of the set channel modes ?