This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

delayed join + msg to server

Old posts that have not been replied to for several years.
Locked
t
tonyrayo
Voice
Posts: 20
Joined: Thu Jul 31, 2003 3:29 pm
Location: Waldorf, MD
Contact:

delayed join + msg to server

Post by tonyrayo »

hey guys (and those rare but special tcl gals =p). first off, thx for the help so far, i'm picking up a book on tcl this week, and maybe come out with some decent scripts!

there is a two part question, and of course any help would be great. first off is there any way to delay onjoin of a channel?

second, the reason i want this delay is because i want my bot to be able to send a message to the irc server (/vhost username password), this would allow my bot to obtain a vhost, and the delay is so it joins with the host already changed. mucho thx!!!

-tony
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Using something like:

Code: Select all

bind evnt - init-server my:connect:stuff

proc my:connect:stuff init-server {
# my vhost stuff goes here
}
you can make it do the *stuff* upon connecting to server and using something like:

Code: Select all

foreach chan [chanlist] {
if {[channel get $chan inactive]} {
continue
}
channel set $chan +inactive
}

utimer 5 uninactive

proc uninactive {} {
  foreach chan [chanlist] {
    if {![channel get $chan inactive]} {
      continue
    }
    channel set $chan -inactive
  }
}
something like this anyway.. haven't tested it but it should work on a .13+ with no problems.
Once the game is over, the king and the pawn go back in the same box.
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

use putquick to have it do the command before joining channels, putserv to do the command afterwards.
t
tonyrayo
Voice
Posts: 20
Joined: Thu Jul 31, 2003 3:29 pm
Location: Waldorf, MD
Contact:

Post by tonyrayo »

*glares blankly into the screen* thx! i will try and figure out how to put this knowledge into a script :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

A lil note. add a -next to make it be *processed* first.
Once the game is over, the king and the pawn go back in the same box.
Locked