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.

how to msg ops only

Old posts that have not been replied to for several years.
Locked
s
skeav

Post by skeav »

anyone know how to msg ops only via the bot please
im really struggling to work this out and require some info please
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

depends on the ircd. some allow PRIVMSG @#chan as the target for all ops in chan (generally requiring you to be opped as well). else you'll have to use a foreach loop on the chanlist, with an isop test condition to send the message individually to each op
s
skeav

Post by skeav »

i know that i can private message ops from within irc as myself but im trying to get the eggy to private msg all ops
.PRIVMSG @#admins-only test
What? You need '.help'
the bot doesnt seam to understand the command
any other ideas pls ?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

.msg @#admins-only test

or .tcl putserv "PRIVMSG @#admins-only :test"
s
skeav

Post by skeav »

.msg @#admins-only test
that doest display anything at all
sorry about this but you totaly lost me with the tcl bit i dont have a tcl for it well if i do i cant find it
any more ideas ???

thanks
for so far
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Code: Select all

# .opmsg <text>
bind dcc +o opmsg dcc:opmsg
proc dcc:opmsg {hand idx text} {
  foreach u [chanlist #admins-only] {
    if {[isop $u #admins-only]} { putserv "PRIVMSG $u :$text" }
  }
}
s
skeav

Post by skeav »

cool thanks that did the trick :smile:
Locked