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.
Old posts that have not been replied to for several years.
-
S
- Voice
- Posts: 13
- Joined: Fri Nov 05, 2004 1:05 pm
- Location: Bosnia (RS) / Switzerland
Post
by S »
I was wondering if some one could help me translate this into tcl.
Code: Select all
on *:TEXT:!nreg*:#services:{
set %nreg_nick $2
set %nreg_pw $3
set %nreg_email $4
/timer 1 1 /qline %nreg_nick nick registering
/timer 1 2 /nick %nreg_nick
/timer 1 3 /ns REGISTER %nreg_pw %nreg_email
/timer 1 4 /ns set protect on
/timer 1 5 /nick IrcBot2
/timer 1 6 /unqline %nreg_nick
unset %smode_chan
unset %smode_mode
unset %smode_nick
}
greetz S
Last edited by
S on Tue Nov 09, 2004 2:47 am, edited 1 time in total.
-
demond
- Revered One
- Posts: 3073
- Joined: Sat Jun 12, 2004 9:58 am
- Location: San Francisco, CA
-
Contact:
Post
by demond »
Code: Select all
bind pub - !nreg nreg
proc nreg {n u h c t} {
if {[string tolower $c] == "#services"} {
set t [split $t]; set nreg_nick [lindex $t 0]
set nreg_pw [lindex $t 1]; set nreg_email [lindex $t 2]
utimer 1 [list putserv "qline $nreg_nick :nick registering"]
utimer 2 [list set nick $nreg_nick]
utimer 3 [list putserv "ns register $nreg_pw $nreg_email"]
utimer 4 {putserv "ns set protect on"}
utimer 5 [list set nick IrcBot2]
utimer 6 [list putserv "unqline $nreg_nick"]
}
}
Last edited by
demond on Mon Nov 08, 2004 10:49 am, edited 1 time in total.
-
S
- Voice
- Posts: 13
- Joined: Fri Nov 05, 2004 1:05 pm
- Location: Bosnia (RS) / Switzerland
Post
by S »
closed