| View previous topic :: View next topic |
| Author |
Message |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Wed Mar 14, 2007 1:03 pm Post subject: Message everyone in a channel |
|
|
Once i type a command, and there are 7 users in the channel. It excludes chanserv and the bot itself, but messages the rest of the people with a privmsg.. i want to do this. After that once it's messaged, then if someone leaves the channel, it does something... i'll define that later.. lets say ban the person from another chan...
Thanks a whole bunch _________________ Anser Quraishi
Website: http://www.anserq.com |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Mar 14, 2007 4:25 pm Post subject: |
|
|
| Code: | bind pub - !msg msg:all
proc msg:all {nick uhost hand chan arg} {
foreach n [chanlist $chan] {
if {[isbotnick $nick] || [string equal -nocase "chanserv" $n]} {continue}
puthelp "privmsg $n :$arg"
}
} |
!msg <message> will msg all users except the bot and chanserv (public command). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
vigilant Halfop
Joined: 05 Jan 2006 Posts: 48
|
Posted: Wed Mar 14, 2007 9:29 pm Post subject: |
|
|
Thank you  _________________ Anser Quraishi
Website: http://www.anserq.com |
|
| Back to top |
|
 |
|