Code: Select all
bind part - * pub:spart
bind splt - * pub:ssplit
ok, where are the procs ? pub:spart and pub:ssplit.stammer wrote:try to bind 'splt' and 'part' to trigger a procedure for setting that mode for example:hope this helpsCode: Select all
bind part - * pub:spart bind splt - * pub:ssplit
Some people may learn better if they're not spoon-fedSir_Fz wrote:ok, where are the procs ? pub:spart and pub:ssplit.
your code means nothing unless u modify the procs.
Code: Select all
# Name of the botservice
set botservicenick "X"
bind splt -|- * checkR:gone
bind sign -|- * checkR:gone
proc checkR:gone { nick uhost handle channel args } {
if { $nick == $::botservicenick } {
pushmode $channel -R
}
}
bind join -|- * checkR:back
bind rejn -|- * checkR:back
proc checkR:back { nick uhost handle channel } {
if { $nick == $::botservicenick } {
pushmode $channel +R
}
}
Code: Select all
# change this to match the service bot
set serviceBot nick!ident@host
bind splt - "% $serviceBot" mode-R
bind sign - "% $serviceBot" mode-R
bind part - "% $serviceBot" mode-R
bind join - "% $serviceBot" mode+R
# use '.chanset #chan +R' to enable on a channel
setudef flag R
proc mode-R {n u h c {a ""}} {
if {[channel get $c R]&&[string match *R* [lindex [split [getchanmode $c]] 0]]} {
pushmode $c -R
}
}
proc mode+R {n u h c} {
if {[channel get $c R]&&![string match *R* [lindex [split [getchanmode $c]] 0]]} {
pushmode $c +R
}
}
I'm sorry I couldn't find a different (short) name for it...do you have any suggestions?egghead wrote:Actually, I'm getting a bit confused of your use of the user defined flag "R"... :\
hehe... true. unfortunately slennox disabled the option to "delete" postings, where one could read reactions on postings that were already purged.user wrote:I'm sorry I couldn't find a different (short) name for it...do you have any suggestions?egghead wrote:Actually, I'm getting a bit confused of your use of the user defined flag "R"... :\
EDIT: I ditn't fake that quote. He changed his post ;P
Okay, a test of that script returned the following errors.user wrote:For static nicks/hostmasks it's much better to do the "filtering" on bind level, so include the nick and/or hostmask in the bind and drop the check inside the proc.
Sir_Fz: The sign bind takes care of other quits
If you've set "wait-split" very low, the splt bind's not needed because sign (quit) is triggered $wait-split seconds later.
If the service bot never parts the channel, get rid of the part bindCode: Select all
# change this to match the service bot set serviceBot nick!ident@host bind splt - "% $serviceBot" mode-R bind sign - "% $serviceBot" mode-R bind part - "% $serviceBot" mode-R bind join - "% $serviceBot" mode+R # use '.chanset #chan +R' to enable on a channel setudef flag R proc mode-R {n u h c {a ""}} { if {[channel get $c R]&&[string match *R* [lindex [split [getchanmode $c]] 0]]} { pushmode $c -R } } proc mode+R {n u h c} { if {[channel get $c R]&&![string match *R* [lindex [split [getchanmode $c]] 0]]} { pushmode $c +R } }
That's because you're running an old version of eggdrop.mcdarby wrote: [21:09] Tcl error [mode-R]: unknown channel command: should be one of: add, set, info, remove
Code: Select all
[channel get $c R]
Code: Select all
[lsearch [channel info $c] +R]>-1