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.

Mass-notice for user_class in IRCD !?

Old posts that have not been replied to for several years.
Locked
f
focus_user
Voice
Posts: 4
Joined: Wed Aug 10, 2005 4:49 am

Mass-notice for user_class in IRCD !?

Post by focus_user »

Hello everyone.

I`m searching of a script (on eggdrop with IRCOp PRIVS) which can mass-notice users from specified user_class at the IRCD. For example I need to send mass-notice to all users (which are in class: users) and to do so by a command (exm: .msg notice class message)... did someone has something like that?

If so, please share it to me. Thanks very much in advance.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no need of a script, most servers support /notice $irc.server.com or /notice $$servermask, which sends to all users on the given server or set of matching servers
f
focus_user
Voice
Posts: 4
Joined: Wed Aug 10, 2005 4:49 am

Post by focus_user »

wow... it works...

thank you very much demond, you save a lot of time for searching for me.
by the way (the ircd-version is hybrid www.ircd-hybrid.com)
Do the server has other such interesting commands as that ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

check out the contrib directory of ircd-hybrid distribution and you'll find other interesting commands (they are disabled and not compiled/installed by default, you'll need to run make install there)
f
focus_user
Voice
Posts: 4
Joined: Wed Aug 10, 2005 4:49 am

re

Post by focus_user »

Hi again.

I`ve seen ur post (if u remember) about the mass-notice messaging of all users from a server. I want to ask you, if there is a way I could message onconnect my users in the IRCD somehow with .tcl in my eggdrop? I`ll be very appreciate to you, if u can help me please?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind raw - notice foo
bind evnt - init-server bar
proc foo {f k t} {
   scan $::server {%[^:]} s
   if {$f == $s && [string match "*Client connecting: *" $t]} {
      set n [lindex [split $t] 6]
      putserv "privmsg $n :hi"
   }
}
proc bar t {
   putserv "oper $::nick operpass"
   putserv "mode $::botnick +c"
}
of course, the bot needs to have ircop status (local will suffice)
f
focus_user
Voice
Posts: 4
Joined: Wed Aug 10, 2005 4:49 am

Post by focus_user »

thanks a lot man
Locked