Formatting of code : You can (and must) use [ tcl ] an [ /tcl ] tags (without spaces in tags) to format your TCL codes and have syntax coloration x

[Solved] tcl for get op
Hey guys, I have an eggdrop with IRC Oper status, using SACommands.
Is it somebody to make me a tcl when the bot join in a channel to make op his self. The bot will not be added to services, so will ussing the command "/sajoin botnick channel" and will be able to use command "/samode #channel +o botnick"
Thanks in regards!

bind join - * join:opbot
proc join:opbot { nick host hand chan } {
    if {$nick eq $::botnick} {
       putserv "SAMODE $chan +o $::botnick"

It's not tested but it should work.

if the command in the putserv is not correct, you will have to modify it.
It`s working perfect. Thanks mate!

Forum Jump:

Users browsing this thread: 1 Guest(s)