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.

Looking for script

Old posts that have not been replied to for several years.
Locked
t
thebig

Looking for script

Post by thebig »

I've used the search function but couldn't find waht I was looking for.

Is there a way to make an egg send all msgs sent to it, to a specific channel.

so if i msg my egg it will echo it to a channel. but if myself the owner sends stuff if will ignore it.

Thanks
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind msgm - * relay:priv

proc relay:priv {nick uhost hand arg} {
if {![matchattr $hand n]} {
 putserv "PRIVMSG #channel :($nick) $arg"
 }
}
dont forget to change the #channel to your chanel and it wont relay messages by the owner.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Umm.. actualy it's wrong. As it is right now it will msg to the #channel all the msges he will see in all channels including #channel. A fix of this will be either a change to match a specific channel to get info from in the bind or an if check..
Once the game is over, the king and the pawn go back in the same box.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

caesar wrote:Umm.. actualy it's wrong.
it's a msgm bind, not pubm...so YOU're wrong :)
Have you ever read "The Manual"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Umm.. damn.. I'm tierd or something. Didn't sow it clearly.. my mistake.. sorry.
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

lol, you beat me to it user :P . Pay more attention caesar.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I'd better drink some cofee before checking the forum :mrgreen: :P
Once the game is over, the king and the pawn go back in the same box.
t
thebig

Post by thebig »

thanks for the code.
t
thebig

Post by thebig »

one last thing, how would i add a timestamp to this?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

check http://tcl.tk/man/tcl8.4/TclCmd/clock.htm

this will show you the syntax
Locked