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.

Some tcl help?

Old posts that have not been replied to for several years.
Locked
A
Acolyte

Post by Acolyte »

bind msgm - "*" privatemsg
proc privatemsg {nick uhost hand arg} {
global prchan
set line [string trim $arg]
msg $prchan "$nick said: $line"
return 0
}

Works great... but doesnt work well for hidding certain things I would like to hide... i.e if someone msg the bot ident/pass it shows it... any simply way to fix this? Thx!
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Somthing like

Code: Select all

bind msgm - "*" privatemsg
proc privatemsg {nick uhost hand arg} {
  global prchan
  set line [string trim $arg]
  set a 0
  foreach b [binds msg] {
    if {[string tolower [lindex $b 2]] == [string tolower [lindex [split $arg] 0]]} {
      set a 1
      break
    }
  }
  if {$a} {
    msg $prchan "$nick said: $line"
  }
}
A
Acolyte

Post by Acolyte »

Thanks for the help!

<font size=-1>[ This Message was edited by: Acolyte on 2001-12-30 16:21 ]</font>
Locked