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.

Tcl-Request: Voice all Users on a Channel

Old posts that have not been replied to for several years.
Locked
L
Luxar

Post by Luxar »

Hi there,
i need a tcl-script which voices all users on a channel without giving all nicks as a parameter.
shall be a publich command like !voiceall.
i dont know, who to tell the script all the nicks on the channel...

Thanks for helping, Luxar
a
agoni

Post by agoni »

[chanlist $channel] return the list of $channel so u can test this script. Need to be op of $channel to use the commande !allvoice


bind pub - !allvoice massvoice

proc massvoice {nick uhost hand channel arg} {
if [isop $nick $channel] {
if [botisop $channel] {
foreach needvoice [chanlist $channel] {
if !([isop $needvoice $channel]||[isvoice $needvoice $channel]) {
pushmode $channel +v $needvoice
}
}
}
}
}

<font size=-1>[ This Message was edited by: agoni on 2001-12-14 22:32 ]</font>
L
Luxar

Post by Luxar »

Works fine.
Thanks alot, Luxar
B
B|aDe

Post by B|aDe »

Hi,

I'm on the irc.webchat.org network and the !allvoice code didnt work for me. The bot only voiced 4 people and stopped.

<_andy> !allvoice
[20:53] *** HmongChat sets mode: +vvv Killer`` jo|-|nnY AuSSie^LoRsTa^cHick
[20:53] *** HmongChat sets mode: +v nano_bibadee_babadee_buu_icu

any ideas?

Thanks...

Andy
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

At a guess I'd say you haven't set your network settings right (ie, modes per line). Could also just be eggdrop rebelling aginst redicuously long nicks :razz:
Locked