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.
Old posts that have not been replied to for several years.
t
thebig
Post
by thebig » Wed Nov 19, 2003 6:44 pm
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
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Thu Nov 20, 2003 9:44 am
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.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Nov 20, 2003 12:31 pm
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
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Nov 20, 2003 2:07 pm
caesar wrote: Umm.. actualy it's wrong.
it's a msgm bind, not pubm...so YOU're wrong
Have you ever read "The Manual"?
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Nov 20, 2003 4:13 pm
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.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Thu Nov 20, 2003 4:14 pm
lol, you beat me to it user
. Pay more attention caesar.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Nov 20, 2003 4:15 pm
I'd better drink some cofee before checking the forum
Once the game is over, the king and the pawn go back in the same box.
t
thebig
Post
by thebig » Thu Nov 20, 2003 8:01 pm
thanks for the code.
t
thebig
Post
by thebig » Thu Nov 20, 2003 8:17 pm
one last thing, how would i add a timestamp to this?