| View previous topic :: View next topic |
| Author |
Message |
Snorly Voice
Joined: 17 Apr 2006 Posts: 25
|
Posted: Mon Apr 17, 2006 2:56 pm Post subject: !voiced |
|
|
Hello i want a script for eggdrop
i have it for mIRC but i want it for eggdrop
mIRC:
on *:text:!voiced:#:/msg $chan $pusers(v):pcb Voiced users at $chan
thank you
example
* <nick1> !voiced
* <nick2> 166 Voiced users at #channel |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Apr 17, 2006 4:27 pm Post subject: |
|
|
| Code: | bind pub - !voiced voiced
proc voiced {nick uhost hand chan arg} {
set i 0
foreach n [chanlist $chan] {
if {[isvoice $n $chan]} { incr i }
}
puthelp "privmsg $chan :$i voiced people on $chan."
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts
Last edited by Sir_Fz on Wed Apr 19, 2006 5:58 pm; edited 1 time in total |
|
| Back to top |
|
 |
Snorly Voice
Joined: 17 Apr 2006 Posts: 25
|
Posted: Wed Apr 19, 2006 2:55 pm Post subject: |
|
|
* <nick> !voiced
* <eggdrop> 162 voiced people on #chan.
it displays all users on chan not just voiced users
can u fix? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Apr 19, 2006 6:00 pm Post subject: |
|
|
I fixed the code above, had a typo in:
| Code: | | if {[isvoice $nick $chan]} { incr i } |
$nick should be $n. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Snorly Voice
Joined: 17 Apr 2006 Posts: 25
|
Posted: Thu Apr 20, 2006 7:29 am Post subject: |
|
|
| thank you |
|
| Back to top |
|
 |
|