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 

format error

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


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Sat Nov 19, 2005 10:27 am    Post subject: format error Reply with quote

I have a error with the kickmsg format

Code:
set ::id [expr $::id + 1]
    set reason "change the topic"
    set homechan $protect::homechan
    set kickmsg $protect::kickmsg
    set kickmsg [format $kickmsg $reason $channel $::id $homechan] 
    newchanban $channel $userhost "$kickmsg" $protect::topic_btime
    if {[botisop $channel]} {
      putquick "MODE $channel -o+b $nickname $userhost"
      putquick "KICK $channel $nickname $kickmsg"
      putlog "punished $nickname on $channel \(Reason: Topic Change\)"
      } else {
      putlog "Couldn't punish $nickname on $channel \(Reason: no op\)"
    }


The error:
Code:
* The-Partyline changes topic to 'baaaaaaaaaaaaaah'
* BC|PR0T3CT0R sets mode: -o+b The-Partyline *!Tosser@spc1-lanc1-3-0-cust169.asfd.broadband.ntl.com
* The-Partyline was kicked by BC|PR0T3CT0R ((ID: 21) ][ (SecureBot by #BotCentrum) ])


For some reason, it does not format the reason and channel into the kickmsg...

This is the $protect::kickmsg variable line
Code:
variable kickmsg "10\[ 3\(1You are not ALLOWED to %1\$s on %2\$s3\) 10\]\[ 3\(1ID: %3\$s3\) 10\]\[ 3\(1SecureBot by %4\$s3\) 10\]"


Any ideas of why the kickmsg format is not working correctly???

Thanks in advance Smile
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Sat Nov 19, 2005 11:29 am    Post subject: Reply with quote

You didn't use : (you need to use it when you use more then 1 word long message)

Kick format is:

putquick "KICK chan nick :hello how are you"
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Sat Nov 19, 2005 1:20 pm    Post subject: Reply with quote

arrh, thanks ]Kami[
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
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