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 

Request script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
[Lt]im
Voice


Joined: 09 Mar 2006
Posts: 17
Location: Kaunas - Lithuania

PostPosted: Fri Apr 21, 2006 11:08 am    Post subject: Request script Reply with quote

I need a script that will ban nick from chan if it not have @, but nick should have 20s time when joined chan to identify for his nick. Thanks.

(Sory for bad english)
_________________
[Lt]im
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Apr 21, 2006 11:50 am    Post subject: Reply with quote

Code:
set yourchan #channel

bind time - * checknotop

proc checknotop args {
 global yourchan
 foreach n [chanlist $yourchan] {
  if {[unixtime]-[getchanjoin $n $yourchan] > 20 && ![isop $n $yourchan]} {
   pushmode $yourchan +b *!*@[lindex [split [getchanhost $n $yourchan] @] 1]
   putserv "kick $youchan $n :Only ops allowed here."
  }
 }
}

This will check the channel every minute.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Fri Apr 21, 2006 6:24 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
[Lt]im
Voice


Joined: 09 Mar 2006
Posts: 17
Location: Kaunas - Lithuania

PostPosted: Fri Apr 21, 2006 2:57 pm    Post subject: Reply with quote

Can You write full script? Becouse i get errors Rolling Eyes and dont know how to fix them.
_________________
[Lt]im
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Apr 21, 2006 6:26 pm    Post subject: Reply with quote

Fixed it. Next time, paste the error; that's the logical move after all.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
[Lt]im
Voice


Joined: 09 Mar 2006
Posts: 17
Location: Kaunas - Lithuania

PostPosted: Fri Apr 21, 2006 6:29 pm    Post subject: Reply with quote

Fixed it by my self... Anyway thank You.
_________________
[Lt]im
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 -> Script Requests 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