| View previous topic :: View next topic |
| Author |
Message |
Balkanac Voice
Joined: 15 Aug 2005 Posts: 12
|
Posted: Thu Sep 01, 2005 11:56 am Post subject: Nickreg script |
|
|
What is wrong?
Can anybody help me? please..
| Code: | bind pub - !nreg nreg
proc nreg { nick u handle chan text } {
if {[string tolower $chan] == "#nickreg"} {
set ::nreg(nick) [lindex [split $text] 0]
set ::nreg(pw) [lindex [split $text] 1]
set ::nreg(email) [lindex [split $text] 2]
putserv "notice NickServ :info $::nreg(nick)"
}
}
bind notc - * notc_nickserv
proc notc_nickserv { nick address handle text dest } {
set 3 [lindex [split $text] 2]
if {[string match -nocase "NickServ" $nick] && [string match -nocase "is" $3]} {
putserv "privmsg #support :This nickname is already registered. Please take another one!"
return 0
}
if {[string match -nocase "NickServ" $nick] && [string match -nocase "*is not registered*" $text]} {
utimer 1 [list putserv "qline $::nreg(nick) :registering"]
utimer 2 [list set nick $::nreg(nick)]
utimer 3 [list putserv "privmsg NickServ :REGISTER $::nreg(nick) $::nreg(pw) $::nreg(email)"]
utimer 4 [list putserv "privmsg NickServ :SET protect on"]
utimer 5 [list set nick IrcBot2]
utimer 6 [list putserv "unqline $::nreg(nick)"]
return 0
}
if {[string match -nocase "NickServ" $nick] && [string match -nocase "*The nickname*has now been registered to you*" $text]} {
set registered_nick [lindex [split $text] 2]
putserv "globops :NickServ: The nickname \002${registered_nick}\002 has now been registered!"
return 0
} else { return 0 }
} |
Thank you! |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Sep 01, 2005 12:08 pm Post subject: |
|
|
We should ask what's wrong not you, what's not working for you? or what's it supposed to do? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Balkanac Voice
Joined: 15 Aug 2005 Posts: 12
|
Posted: Thu Sep 01, 2005 12:10 pm Post subject: |
|
|
No error message appears, and nevertheless offered the task does not make..
Sorry for my bad English!
Greetings |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 01, 2005 1:09 pm Post subject: |
|
|
| wrong is that timer stuff, you should proceed with each step of registration only after receiving the corresponding nickserv notice, not dump output by timer; irc timing is never an exact science and almost always a bad idea |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sat Sep 03, 2005 3:46 am Post subject: |
|
|
Here is a channel grabber script I made earlier last year. It tries to register dropped channels through ChanServ when the channel is empty. The bot cycles, gets ops and registers it.
You can maybe take a look at this and have an idea:
http://www.awyeah.org/scripts/channelgrabber.zip _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
|