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 

Need help: extra characters after close-quote

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
garfwen
Halfop


Joined: 12 Mar 2008
Posts: 61

PostPosted: Tue Dec 30, 2008 9:28 am    Post subject: Need help: extra characters after close-quote Reply with quote

Tcl error [addbnc]: extra characters after close-quote

Code:


proc addbnc {nick host hand chan arg} {
global db
set ident [lindex [split $arg] 0]

        if {[string match *.users.quakenet.org* $host]} {
                set auth [lindex [split [lindex [split $host @] 1] .] 0]
                 set getauth [::mysql::sel $db "SELECT id FROM users WHERE auth='$auth'" -list]

      if { $getauth != "" } {
                    putserv "PRIVMSG $chan : You already asked for a bnc! "
                             } else {
                    set getident [::mysql::sel $db "SELECT id FROM users WHERE ident='$ident'" -list]

             if { $getident != "" } {
                    putserv "PRIVMSG $chan : Theres already a bouncer with that ident, please choose another."

                             } else {
                                    if {[string length $ident] > 6} {
                                          putquick "privmsg $chan "Error. The ident is longer as 6 vars."
                                     } else {
                                    set time "Date"
                                    putquick "privmsg $chan :OK, your request has been send. You'll have to wait to know your result(this can take 30 seconds or 30mins). DO NOT RENAME NOW!"
                                    set result [::mysql::exec $db "INSERT INTO users (nick,auth,ident,time,standing,level) VALUES('$nick','$auth','$ident','$time','Waiting','1')"]
                                    set getid [::mysql::sel $db "SELECT id FROM users WHERE auth='$auth'" -list]
                                    putquick "privmsg $chan :New bouncer requested. (ID: $getid). /msg q whois #$auth : to accept: .accept $getid ; to decline .decline $getid"
                             }
                         }
                    }

         } else {
            putserv "privmsg $chan : You are not \002authed\002 (on Q bot), or have not set \002mode +x\002. (\002//mode \$me +x\002)"
   }
}



What is wrong Question Sad
Back to top
View user's profile Send private message
tsukeh
Voice


Joined: 20 Jan 2005
Posts: 31

PostPosted: Tue Dec 30, 2008 10:01 am    Post subject: Reply with quote

check this line...
Code:

putquick "privmsg $chan "Error. The ident is longer as 6 vars."
Back to top
View user's profile Send private message
garfwen
Halfop


Joined: 12 Mar 2008
Posts: 61

PostPosted: Tue Dec 30, 2008 10:09 am    Post subject: Reply with quote

Yeah... Rolling Eyes

Code:
putquick "privmsg $chan :Error. The ident is longer as 6 vars."


Ty.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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