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 

Tcl error [pub:regler]: 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
nyhusern
Voice


Joined: 24 Aug 2007
Posts: 1

PostPosted: Fri Aug 24, 2007 1:18 am    Post subject: Tcl error [pub:regler]: extra characters after close-quote Reply with quote

Need help with a script i have modified to my use..

Code:
#TRAX regler script av Nyhusern

proc say {who what} {
   puthelp "PRIVMSG $who :$what"
}
proc notice {who what} {
   puthelp "NOTICE $who :$what"
}
proc cleanarg {arg} {
 set temp ""
   for {set i 0} {$i < [string length $arg]} {incr i} {
  set char [string index $arg $i]
  if {($char != "\12") && ($char != "\15")} {
   append temp $char
  }
 }
 set temp [string trimright $temp "\}"]
 set temp [string trimleft $temp "\{"]
   return $temp
}

bind pub - !regler pub:regler

proc pub:regler {nick uhost hand chan args} {
   global botnick
   set args [split [cleanarg $args]]
   if {[llength $args]<1} {
privmsg $nick "------\002Trax REGLER!\002-------------------------------------------"
privmsg $nick "Regler for vår kanal"
privmsg $nick "1. Aldri reklamer for andre kanaler(Dette vil ende med ban)"
privmsg $nick "2. Aldri spørr etter idle deals (Dette kan ende med ban)"
privmsg $nick "3. Aldri flood kanalen (Dette vil ende med ban kanskje til og med PERM ban)"
privmsg $nick "4. Aldri mas på en @(OP). Vi vil svare deg når vi kan (Dette kan ende med kick evt ban)"
privmsg $nick "5. Oppfør deg til all tid, og prøv å hold språk bruken til et "OK" nivå (Om ikke kan det ende med kick evt ban)"
privmsg $nick "Det var det! Ha det hyggelig på vår IRC kanal MVH: TRAX Admins / Crew"
privmsg $nick "---------------------------------------------------------"
privmsg $nick "\002Husk at vi tar disse reglene veldig seriøst, og både oppfordrer og regner med at du vil følge dem!\002"
privmsg $nick "------- skriv \002 !regler\002 for å få opp reglene engang til ----------"
   #end
   }
}



When I type !regler in channel i get this error Tcl error [pub:regler]: extra characters after close-quote

Yes the text is on norwegian, so if you need to understand what ive have wrote just tell me and i'll redo it with english language.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Aug 24, 2007 8:54 am    Post subject: Reply with quote

This is the line to blame:
Code:
privmsg $nick "5. Oppfør deg til all tid, og prøv å hold språk bruken til et "OK" nivå (Om ikke kan det ende med kick evt ban)"

You'll have to escape any quotes (") within the string, such as:
Code:
privmsg $nick "5. Oppfør deg til all tid, og prøv å hold språk bruken til et \"OK\" nivå (Om ikke kan det ende med kick evt ban)"

_________________
NML_375, idling at #eggdrop@IrcNET
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