| View previous topic :: View next topic |
| Author |
Message |
masheen Voice

Joined: 28 Apr 2007 Posts: 28
|
Posted: Thu May 24, 2007 10:08 am Post subject: hi help a script with +ipcheck |
|
|
hi again i nid help with my script here
| Code: | bind msg -|- entra kick:msg
bind msg -|- chupi kick:sale
proc kick:msg {nick uhost hand arg} {
set kchan [lindex $arg 0]
channel add $kchan
putquick "JOIN $kchan"
putquick "PRIVMSG $kchan :Im here - Awaiting orders $nick"
}
proc kick:sale {nick uhost hand arg} {
global botnick
set kchan [lindex $arg 0]
set knick [lindex $arg 1]
set kreason [lrange $arg 2 end]
channel remove $kchan
putquick "NOTICE $nick :Just joined $cchannel."
} |
note: i know the naming convention is lame hehe...but what this script does is if i msg it with entra #chan it joins the chan. this script is actually working fine already so all is well with this one...but this time i am hoping if anyone can put in a line or two on this script to FLAG the channel with +ipcheck everytime it joins a chan. is that possible? thanks for anyone who helps [/code] _________________ let he who is without stone cast the first sin |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu May 24, 2007 10:19 am Post subject: |
|
|
Something like this then. Also took the liberty of fixing several bugs, aswell as removed stale code...
| Code: | bind msg -|- entra kick:msg
bind msg -|- chupi kick:sale
setudef flag ipcheck
proc kick:msg {nick uhost hand arg} {
set kchan [lindex [split $arg] 0]
channel add $kchan [list +ipcheck]
putquick "PRIVMSG $kchan :Im here - Awaiting orders $nick"
}
proc kick:sale {nick uhost hand arg} {
set kchan [lindex [split $arg] 0]
channel remove $kchan
putquick "NOTICE $nick :Just joined $kchan."
} |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|