egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Nickreg script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Balkanac
Voice


Joined: 15 Aug 2005
Posts: 12

PostPosted: Thu Sep 01, 2005 11:56 am    Post subject: Nickreg script Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Sep 01, 2005 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Balkanac
Voice


Joined: 15 Aug 2005
Posts: 12

PostPosted: Thu Sep 01, 2005 12:10 pm    Post subject: Reply with quote

No error message appears, and nevertheless offered the task does not make..


Sorry for my bad English!

Greetings
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 01, 2005 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sat Sep 03, 2005 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber