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.
Balkanac
Voice
Posts: 12 Joined: Mon Aug 15, 2005 12:38 pm
Post
by Balkanac » Thu Sep 01, 2005 11:56 am
What is wrong?
Can anybody help me? please..
Code: Select all
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!
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Thu Sep 01, 2005 12:08 pm
We should ask what's wrong not you, what's not working for you? or what's it supposed to do?
Balkanac
Voice
Posts: 12 Joined: Mon Aug 15, 2005 12:38 pm
Post
by Balkanac » Thu Sep 01, 2005 12:10 pm
No error message appears, and nevertheless offered the task does not make..
Sorry for my bad English!
Greetings
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Thu Sep 01, 2005 1:09 pm
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
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Sat Sep 03, 2005 3:46 am
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.
==================================