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.

bin raw connect

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
CrazyCat
Revered One
Posts: 1305
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Re: bin raw connect

Post by CrazyCat »

I guess you didn't search a lot. And your eggdrop must be ircop to have a working script.

Short example:
set tellchan "#example"
bind raw - NOTICE tellus
proc tellus {frm key text} {
   if {[string match *!*@* $frm] || ![string match -nocase "*client connecting*" $text]} {
      return
   }
   regexp {:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} $text - unick ident host ip
   putserv "PRIVMSG $::tellchan :$unick connecting network from $host"
}
Note that the regexp works with unrealircd but need to be modified for others ircds.
Post Reply