|
totality Newbie
Joined: 20 Feb 2005 Posts: 2
|
Posted: Sun Feb 20, 2005 8:43 pm
Help w/Logging and Child Windows |
Hello,
I'm an admin on a MUD, and I was wondering if it was possible to re-route messages from certain logging channels to child windows. That is, to not see them on the parent window, but have them instead go straight to the child window.
Example of the logging channel:
//(player) Log Jimmy-Bob: bow
Example of the child window logging trigger I have set-up:
:Logs: #sayp %time( c)%char( 32)
#cap Logs
So, is it possible to gag the log message on the main window, and have it log to the child?
Thanks in advance. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sun Feb 20, 2005 10:19 pm |
add a #GAG
to the trigger |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Feb 20, 2005 10:25 pm |
Without writing a custom plugin the only way would be to #GAG the line in the main window.
#TRIGGER {//~(player~) Log (%x):} {:Logs:#sayp %time(c)%char(32);#CAP logs;#GAG} |
|
|
|
totality Newbie
Joined: 20 Feb 2005 Posts: 2
|
Posted: Sun Feb 20, 2005 11:14 pm |
Thanks for the help- it is much appreciated.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 21, 2005 1:05 am |
Actually, there IS a way. It involves #MAKEWINDOW, but it's kind of a pain.
#MAKEWINDOW windowname REDIRECT <--sends the line directly to the specified window AND shunts everything else to this window
#MAKEWINDOW _previous REDIRECT <--stops sending mud output to the aforementioned window, returning control to the previous window to get that stuff
I'm not quite familiar with #MAKEWINDOW behavior, so you might want to experiment cautiously and expect problems to iron out. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|