Autovoice TCL Script

By xplo on Oct 08, 2011

This is my first TCL, i scripted mIRC for years, but tcl, not a lot.

It is basic and extremely simple.

master (global +m) can use !autovoice on|off

+v is given uppon channel join when enabled.

catch {bind pub m !autovoice channel:avs}
catch {bind join - * chan:vsjoin}

setudef flag avs

proc channel:avs {nick uhost hand chan arg} {

    switch -exact -- $arg {
        "on" {
            channel set $chan +avs
            putserv "PRIVMSG $chan :auto +v is now ON on $chan"
        }
        "off" {
            channel set $chan -avs
            putserv "PRIVMSG $chan :auto +v is now OFF on $chan"
        }
    }
}

proc chan:vsjoin {nick uhost hand chan} {
    if {[channel get $chan avs]} {
              putquick "MODE $chan +v $nick"
    }
}

Comments

Sign in to comment.
play4free2   -  Mar 21, 2014

Nice work Xpl0reR I already have an autovoice.tcl I use but I am so gonna add the channel on/off switch to a few scripts I have :)

xplo  -  Dec 20, 2014

Thank you, and go ahead :p

TheWhistler  -  Dec 19, 2015

good tcl but i need 1 like that to give +o when ppl joins a channel thats not registered with the bot with +o

xplo  -  Dec 19, 2015

You can edit it, so +v would be +o and the text edit in the command too.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.