This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

small mod wanted

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
H
HVR
Voice
Posts: 6
Joined: Thu Dec 10, 2009 5:15 pm

small mod wanted

Post by HVR »

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
}
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

set chan "#channelname" Might work not 100% on that though probably wrong
Post Reply