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.

shoutcast2

Old posts that have not been replied to for several years.
Locked
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

shoutcast2

Post by Carnage69 »

hey i was wondering insted of bind pub like this
bind pub -|- ${tr}onair login
ect how do we make it so only users on the userlist can so that not the public also the dj command

proc djs {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv "PRIVMSG #or-radio :4,1* 14,1 »15,1»14,1»4,1 Current DJ : $dj 14,1 »15,1»14,1» 4,1*"
return 0
}
}

i want to put a Onair Time : The time they have ben onair thing at the end can anyone help me whith that
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

if the users you want to be able to use the pub commands have some flags, just include them in the flag part of the bind (-|-). If not; add if {![validuser $hand]} {return 0} as the first line in each proc.

For the on-air time, just store the time ([unixtime]) when they start a session and use '[duration [expr {[unixtime]-$thatTime}]]' where ever you want the duration displayed.
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

hey

Post by Carnage69 »

what is the command to set the topic set topic?
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

hey

Post by Carnage69 »

what do i change these to if i want only people with +afop +++ in the userlist to be able to do it

bind pub -|- ${tr}onair login
bind pub -|- ${tr}cleardj resetdj
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

putserv/puthelp/putquick/putdccraw will send commands to the irc server. The command to set a topic can be found in the irc rfc. Enjoy reading it :P

What do you mean by "+afop +++"? all the flags or any one of them?
C
Carnage69
Halfop
Posts: 64
Joined: Sat Jun 07, 2003 8:25 pm

hey

Post by Carnage69 »

i want all the people on the bots userlist be able to login and just tell me topic command u got aim if u go i im u
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: hey

Post by user »

then leave the bind as it is and just check 'if {![validuser $hand]} {return}' on the first line inside each proc.
Carnage69 wrote:just tell me topic command u got aim if u go i im u
I've got what? ...I go, yes, actually I'm on my way out. Take care :)

PS:

Have you ever set a topic on irc? Do you remember what command you used?

Tip for when you find out:
The actual topic should be prefixed by a ":", like:
"secretCommand #chan :topic string goes here"
Locked