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.

Convert into TCL (easy)

Old posts that have not been replied to for several years.
Locked
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Convert into TCL (easy)

Post by stevegarbz »

Can someone please convert this into TCL:

on *:NOTICE:*:#PE: { if ($nick !isop $chan) cs $chan tb $nick 5d Do not notice the channel. } }
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

provided that "cs" is a server command and not some mIRC alias:

Code: Select all

bind notc - * foo
proc foo {n u h t d} {
   if {[str eq -noc $d #pe] && ![isop $n #pe]} {
      putserv "cs #pe tb $n 5d :Do not notice the channel."
   }
}
we should rank script requesters by the total number of requested scripts... guess who'd be #1 ;)
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Yep, thanks.
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Oh yeah, and for future references.

'str' was invalid, so I had to make it 'string'.

:)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

oh, those str* commands in alltools.tcl...
Locked