I have the following code, and would like to know how to change it so that the trigger will only work on a pre-defined channel.
Any help with this would be greatly appreciated.
bind pub n .kicksource kicksource
proc kicksource {nick host handle chan text} {
#ip:
set server ""
#port:
set port "8000"
#login (get it in mirc with //echo $encode(admin:PASS,m)
set login ""
#don't change anything under this
set sock [socket $server $port]
puts $sock "GET /admin.cgi?mode=kicksrc HTTP/1.1"
puts $sock "User-Agent:Mozilla"
puts $sock "Host: $server"
puts $sock "Authorization: Basic $login"
puts $sock ""
flush $sock
}