egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

small mod wanted

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
HVR
Voice


Joined: 10 Dec 2009
Posts: 6

PostPosted: Tue Dec 22, 2009 1:14 am    Post subject: small mod wanted Reply with quote

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
View user's profile Send private message
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Tue Dec 22, 2009 3:52 am    Post subject: Reply with quote

set chan "#channelname" Might work not 100% on that though probably wrong
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber