| View previous topic :: View next topic |
| Author |
Message |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Sat Nov 19, 2005 10:27 am Post subject: format error |
|
|
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  _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Sat Nov 19, 2005 11:29 am Post subject: |
|
|
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 |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Sat Nov 19, 2005 1:20 pm Post subject: |
|
|
arrh, thanks ]Kami[ _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
|