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.

Auth tcl for netsplits

Old posts that have not been replied to for several years.
Locked
u
unreachable

Auth tcl for netsplits

Post by unreachable »

There is a thing called netsplit on my IRC network and this causing the bots not to be authenticated by the services (X on Undernet) if they are on the wrong sidfe of the spilt or the X is just down for some reason.

Is there a script that will try, lets say, every half hour to log on X unless it is already authenticated ? Or is there any other more efficient solution ? I need the bot to be always unthenticated and with +x (host spoof by server)

Are there any public working tcl scripts for that ?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can make a proc execute repetedly after say 30 interval of minutes logging into X or doing whatever you want.

Something very simple and basic as this.

Code: Select all

timer 30 my:proc

my:proc {} {
 putserv "PRIVMSG X :................"
 timer 30 my:proc
}
Or for netsplits, maybe you can bind on 'splt' and then go ahead authenticate, unauthenticate or whatever you want it to do. Remember to set the wait-netsplit time variable correctly in the .conf file.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

proc id {pass} {
  putserv "privmsg x@channels.undernet.org :login $::nick $pass"
  timer 30 [list id $pass]
}

id xpassword
Locked