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.

Multi Nick Identifier

Help for those learning Tcl or writing their own scripts.
Post Reply
j
john5555
Voice
Posts: 3
Joined: Sat Feb 16, 2008 1:59 pm

Multi Nick Identifier

Post by john5555 »

Hi Guys,

Please guide me with this,

Need some assistance to alter the code below so it will identify 2 additional nick names which is not the eggdrops nick name at 12:00PM on a daily basis.

set nicksNpasses {
nick1 pass1
nick2 pass2
}

set tenDays [clock scan "10 days"]

bind time - {00 00 *} identify:nicks
proc identify:nicks args {
global nicksNpasses tenDays
if {[unixtime] >= $tenDays} {
foreach {nick pass} $nicksNpasses {
puthelp "NickServ :identify $nick $pass"
}
set tenDays [clock scan "10 days"]
}
}
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try

Code: Select all

set nicksNpasses {
 nick1 pass1
 nick2 pass2
}

bind time - {00 00 *} identify:nicks

proc identify:nicks args {
 global nicksNpasses
 foreach {nick pass} $nicksNpasses {
  puthelp "NickServ :identify $nick $pass"
 }
}
Edit: Now identifies every day at 12:00 AM.
Last edited by Sir_Fz on Sun Feb 17, 2008 10:18 am, edited 1 time in total.
j
john5555
Voice
Posts: 3
Joined: Sat Feb 16, 2008 1:59 pm

Post by john5555 »

Thanks for the quick reply :)

Sir_Fz, i need the eggdrop identify nick1 pass1 and nick2 pass2 everyday at 12pm and not every 10 days at specific time. please assist me.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try the edited code.
Post Reply