Opinion: echo != sendToNC
This has been posted many, many, many times in one way or another, I am well aware of that, but at least this isn't a request to just make something like an echo2() or sendToNC2() type thing.
Scripting Opinion: echo() and sendToNC() should not do the same thing, so to speak. Here's what I think it should do- Quote:
Hacker Detection: Informationand only NC users can see it, and not RC users who may have the ability to do something about it, making it only possible for them to see it for it to appear like such: Server Name (Server): Hacker Detection: Information |
Agreed, echo should be visible for everyone with RC, and sendToNC only for those with NC rights.
|
When debugging a script I prefer to use echo() since onyl nc users will see it.. Will be odd to have to switch to sendtonc() just to debug stuff :o
|
what about sendToRC()?
|
I think it echo should have a choosable second parameter..
echo(test[, nc?]); so.. PHP Code:
|
Quote:
|
Quote:
echo() clientside is like savelog() (Dunno if it is still or if savelog() was changed) and sendrpgmessage() |
Can you just use one of those fancy chat room devices and write your own echo and have everybody who is interested in its output join the room in question :\
|
Quote:
|
Let me put this simple:
There is no need to ADD to it, or CHANGE it as such, just remove the restriction from echo(). Let echo do what I said, and let sendToNC do what it even is written as: Sends to NC |
Quote:
but it comes with the name(Server) thing.. |
I like using echo() when sending system messages to RC because it looks neater, and the stuff I would send is usually something all RCs should see.
|
Quote:
Quote:
|
http://wiki.graal.net/index.php/Serv..._output_to_RCs
:D PHP Code:
|
Loving it :] Excellent compromise. Thanks Stefan.
Edit: Though, for this to work locally, does the local NPC Server require any action by Stefan? I set it to true and normal RCs could not see the test. |
All times are GMT +2. The time now is 02:18 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.