| View previous topic :: View next topic |
| Author |
Message |
HVR Voice
Joined: 10 Dec 2009 Posts: 6
|
Posted: Tue Dec 22, 2009 1:14 am Post subject: small mod wanted |
|
|
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
} |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Tue Dec 22, 2009 3:52 am Post subject: |
|
|
set chan "#channelname" Might work not 100% on that though probably wrong _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
|