Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 21st April 2011, 00:39   #1
DedHead
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
DedHead is offline   Reply With Quote
Old 28th April 2011, 20:16   #2
DedHead
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
DedHead is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump