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 

mute.tcl please help fix Tcl error and m|m binding

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
boodle
Voice


Joined: 06 Oct 2014
Posts: 5

PostPosted: Mon Oct 06, 2014 4:18 pm    Post subject: mute.tcl please help fix Tcl error and m|m binding Reply with quote

hi guys , this is my first post here , sorry if this is a repeat but i can't find the answer to this anywhere (even here). this is the mute.tcl available on;

http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1111

it works great for me , as bot owner , just keeps throwing up the error :

Tcl error [mute:nick]: Unknown channel setting.

on the partyline every now and then.

i'm running unreal3.2.10.2 which no longer seems to support the mute function , but promotes the use of +m and voicing instead. i just want to tidy up the code enough to stop the partyline error popping up. Also i need my ops to be able to use the same function , i changed the bindings to o|o but that doesn't seem to work like other scripts i've played with.

this .tcl does everything i need it to (ty metroid) , just needs a little tweak to play nice , but this one is totally over my head Embarassed

any help would be greatly appreciated
thanks
bex (boodle)
Back to top
View user's profile Send private message Visit poster's website
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Mon Oct 06, 2014 4:49 pm    Post subject: Reply with quote

The problem would be in this line of code...
Code:
if {[string match -nocase "*$nickname*" [lindex [split [channel get $channel mute]] 0]]} {


Believe maybe it should read more like...
Code:
if {[string match -nocase "*$nickname*" [lindex [split [channel get $channel muteinfo]] 0]]} {

_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
boodle
Voice


Joined: 06 Oct 2014
Posts: 5

PostPosted: Mon Oct 06, 2014 5:13 pm    Post subject: Reply with quote

thank you so much , thats fixed the error , i'll go back to playing with the bindings again and hopefully it plays nice this time.

Very Happy
Back to top
View user's profile Send private message Visit poster's website
boodle
Voice


Joined: 06 Oct 2014
Posts: 5

PostPosted: Mon Oct 06, 2014 6:23 pm    Post subject: Reply with quote

that fix worked perfectly, thank you so much Smile , i still can't understand why changing the binding to o|o instead of m|m doesn't work to allow my ops to mute , even -|- doesn't work. i can't see anywhere else in the script where it binds to m|m. any clues??

thanks
bex (boodle)
Back to top
View user's profile Send private message Visit poster's website
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Mon Oct 06, 2014 6:59 pm    Post subject: Reply with quote

Nope, that's all there is to it.

That o|o flag implies the user is properly added to the bot's userfile with the global o flag, or a channel o flag for the referenced channel.

The bind does not check for ops in the channel & does not care either way.

Try changing the binds to o|o and killing the bot, to clear all other binds to the same procs. Start the bot fresh and see what you got.
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
boodle
Voice


Joined: 06 Oct 2014
Posts: 5

PostPosted: Tue Oct 07, 2014 6:21 am    Post subject: Reply with quote

thats all fixed now, thank you so much for your help , i had a quick crash course in bot user flags and i get where i was messing up now Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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