|
|
#1 |
|
Junior Member
Join Date: Apr 2011
Posts: 2
|
MSL SHOUTcast Remote kick source
I'm sorry if there is already a topic on this, but I did a search and it came up with nothing.
My problem is: We run a small IRC Network with a SHOUTcast radio station. We've made an addon for it in MSL, and are trying to add a Remote Kick for the auto-dj. I'm not used to coding sockets and what I have isn't working. I'm hoping someone can tell me what I've done wrong, and can point out a solution. Here is what I have: alias kck { sockclose kck if (( %sc.dj == Auto-Dj ) && ( %sc.auto == 1 )) { sockopen kck %sc.host.ip %sc.port } else { halt } } on *:sockopen:kck: { if ( $sockerr > 0 ) { msg %sc.chan $sockerr return } sockwrite -n $sockname GET /admin.cgi?pass= $+ %sc.admin.pw $+ &mode=kicksrc HTTP/1.0\ sockwrite -n $sockname nUser-Agent: Mozilla sockwrite -n $sockname $crlf } on *:sockclose:kck: { ; msg %sc.chan closing socket } I know I've done something wrong |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Apr 2011
Posts: 2
|
ok ... I finally figured out why it wasn't logging in.
http://RadioIP:RadioPort/admin.cgi?p...d&mode=kicksrc HTTP/1.0 That gets it signed in, but doesn't activate the button. Can anyone tell me how I can access that "Kick" button remotely? Once I get this working, I'm NEVER working with sockets again. Last edited by DedHead; 28th April 2011 at 20:25. Reason: forgot to add something |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|