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.

relay script

Old posts that have not been replied to for several years.
Locked
r
ribbon
Voice
Posts: 4
Joined: Mon Jun 28, 2004 1:33 pm
Location: belgium
Contact:

relay script

Post by ribbon »

i'm looking for a tcl that show al the join/part/nick change/kick/ban of multi channels into a operator chan.

something like this:
#chan1 : nick1 has quit IRC (Ping timeout)

Tnx
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 - JOIN foo
bind raw - PART foo
bind raw - NICK foo
bind raw - KICK foo
bind raw - MODE foo
proc foo {f k t} {
  set t [split [string trimleft $t :]]
  switch $k {
    "JOIN" {set s "$f has joined [join $t]"}
    "PART" {set s "$f has parted [join $t]"}
    "NICK" {set s "$f is now known as [lindex $t 0]"}
    "KICK" {set s "$f has kicked [lindex $t 1] off [lindex $t 0] [join [lrange $t 2 e]]"}
    "MODE" {set s "$f sets mode on [lindex $t 0]: [join [lrange $t 1 e]]"}
  }
  puthelp "privmsg #operchan :$s"
}
Locked