egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

hi help a script with +ipcheck

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
masheen
Voice


Joined: 28 Apr 2007
Posts: 28

PostPosted: Thu May 24, 2007 10:08 am    Post subject: hi help a script with +ipcheck Reply with quote

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 Smile[/code]
_________________
let he who is without stone cast the first sin
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu May 24, 2007 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber