on certain nicks i was told on eggdrop support channel not to use split but even after consulting the docs i couldnt figure it out
this is the code :
Code: Select all
bind pubm n|n "#% +?*" pub:massmodez317
bind pubm n|n "#% -?*" pub:massmodez317
proc pub:massmodez317 {nick host hand chan text} {
set modex [join [lindex [split $text] 0]]
set restmodes [lrange [split $text] 1 end]
if { [onchan [string map {+ "" - ""} $modex] $chan] } { return 0 }
if { [llength [split $text]] == 2 } {
putnow "MODE $chan $modex $restmodes"
} else { return 0 }
}
+b [somenick]
+b {somenick}
it sets it as +b {{[somenick]}}
it sets it as +b {{{somenick}}}
i was told it has to do with the split that was used
Eggdrop community