I have found this which is what I want but I also want it to message or put an action to a channel I chose too.
Code: Select all
proc actall_func {nick uhost hand chan text} {
if {[lsearch -exact [channel info $chan] +admin] != -1} {
if {[string length $text] > 0} {
set text [string trim $text "{}"]
foreach n [channels] { putserv "PRIVMSG $n :\001ACTION $text \001" }
} else { puthelp "NOTICE $nick :.actall <action> - Sends an action to all channels the bot is in." }
}
}
proc sayall_func {nick uhost hand chan text} {
if {[lsearch -exact [channel info $chan] +admin] != -1} {
if {[string length $text] > 0} {
set text [string trim $text "{}"]
foreach n [channels] { putserv "PRIVMSG $n :$text" }
} else { puthelp "NOTICE $nick :.sayall <message> - Sends a message to all channels the bot is in." }
}
}
Examples:
.gline <user@host mask> [time] <reason>
.glinedel <user@host mask>
If I missed these somewhere please point me in the correct direction.
Thanks for any help