| View previous topic :: View next topic |
| Author |
Message |
deadman Voice
Joined: 08 May 2006 Posts: 18
|
Posted: Sun Jul 16, 2006 12:50 pm Post subject: onjoin msg after set time |
|
|
hi guys
is it poss to make the eggdrop msg a nick onjoining a set channel after say 5 sec but if the nick leaves befor 5 secs is up the eggdrop dosent msg said channel
thanx guys |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Jul 17, 2006 7:19 pm Post subject: |
|
|
| Sure, just use a timer and then double-check if the nick is still present before sending the msg. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Tue Jul 18, 2006 1:37 am Post subject: |
|
|
| Code: | bind JOIN -|- * useless:spam
proc useless:spam {nick host hand chan} {
utimer 5 [list send:spam $chan $nick]
}
proc send:spam {chan nick} {
if {[onchan $nick $chan]} {
putserv "PRIVMSG $chan :Welcome $nick!"
}
} |
if the person were to rejoin over and over, this would obviously cause a flood though. |
|
| Back to top |
|
 |
deadman Voice
Joined: 08 May 2006 Posts: 18
|
Posted: Tue Jul 18, 2006 1:33 pm Post subject: |
|
|
thanx metroid for your help
is there away to stop it flooding say like if the bot was to only msg the cannel to the same nick every 10 mins if they kept rejoining |
|
| Back to top |
|
 |
deadite66 Halfop
Joined: 30 May 2005 Posts: 74 Location: Great Yarmouth, UK
|
Posted: Tue Jul 18, 2006 1:49 pm Post subject: |
|
|
maybe change to NOTICE $nick so they would just spam themselves _________________ <- tcl newb |
|
| Back to top |
|
 |
deadman Voice
Joined: 08 May 2006 Posts: 18
|
Posted: Tue Jul 18, 2006 2:22 pm Post subject: |
|
|
| nice idea thanx |
|
| Back to top |
|
 |
|