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 

how to centralize the commands only in a room
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Mar 16, 2022 11:06 am    Post subject: Reply with quote

flink wrote:
good Crazy Cat thanks for contributing ideas I removed pub and it still doesn't work !direct

Code:

::radio::getstream 0 0 0 0 0


As I said, you must also change the proc:
Code:
if {($wd eq "pub") || ($::radio::cursong ne $title)} {

must become:
Code:
if {($wd == 0) || ($::radio::cursong ne $title)} {

_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Wed Mar 16, 2022 12:15 pm    Post subject: Reply with quote

lol, that's simply not true:)

Code:
Must be:

 Code:
::radio::getstream 0 0 0 0 0



The called process doesn't care what the arguments contain!

I edited my earlier post to hopefully fix that "wrong number of args" error...
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Mar 16, 2022 6:52 pm    Post subject: Reply with quote

Ok, I was quite surprised that tcl checks the type of the arguments... I know understand Smile
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
flink
Halfop


Joined: 21 Feb 2021
Posts: 53
Location: Canarias

PostPosted: Sat Mar 19, 2022 4:41 pm    Post subject: Reply with quote

sorry for not responding before doing what you comment
crazy cat
works perfectly
Thanks a lot
SpiKe^^ & Crazy Cat
_________________
Mi ingles: no es el mejor, Manda el traductor... Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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