|
|
| Author |
Message |
Pierce none

Joined: 09 Feb 2004 Posts: 47
|
Posted: Oct 21, 2004 8:42am Post subject: Modifying Unreal |
|
|
Hey all,
Im currently modifying Unreal3.2.1 to say thing differently so the whois is a little different and the /lusers is a little different but im having difficulty changing 2 lines they are as follows
Pierce using server.something.com
to
Pierce is on board server.something.com
and
Pierce has been idle 3secs, signed on Thu Oct 21 15:27:12
to something like
Pierce is in stasis for 3seconds, signed on Thu Oct 21 15:27:13
i think the whois line is this
/* 312 RPL_WHOISSERVER */ ":%s 312 %s %s %s :%s",
but i just cant get it to say what i want!!
and the idle is in webtv.c somewhere but changing it doesnt reflect changes in the ircd...
Any ideas?
Thanks Pierce |
|
| Back to top |
|
 |
aquanight Lurker

Joined: 14 Jun 2004 Posts: 118 Location: Boise, ID
|
Posted: Oct 21, 2004 8:50am Post subject: |
|
|
| That's because that's how those two lines are actually sent. It's your client that inserts the "using <server>" or "idle <blah>". If you want to change the text for these, you'll have to do it client-side. |
|
| Back to top |
|
 |
Pierce none

Joined: 09 Feb 2004 Posts: 47
|
Posted: Oct 21, 2004 11:10am Post subject: |
|
|
all right, thanks for that
Pierce |
|
| Back to top |
|
 |
olene Newbie

Joined: 31 Jul 2004 Posts: 61 Location: olene on DALnet
|
Posted: Oct 22, 2004 9:13am Post subject: |
|
|
If you are really obsessed about changing those lines, you can replace them with
non-standard numerics, for example instead of
:your_server_name 312 querying_user queryied_user server_name :server_info
you could have the server output something like
:your_server_name 912 querying_user :queried_user is on board server_name (server_info)
There are 3 problems with this, though:
1. Your client (and others') do not receive the information (or at least how its expecting it), so
any scripts or features that require the client know what server soemone's on or their idle time
will not know (but for that matter, those 2 particular lines are not vital, and they are
entirely omitted depending on if the user is local or if the user is a service)
2. Clients might not know how to handle the substitution (in this case, 912) numeric.
Most clients will simply display it in the status window, some in the active window,
but alas, the formatting will not match the current script formatting (since your server
is formatting the message for the client)
3. You have to actually go into m_whois and change what numeric it uses (from RPL_WHOISSERVER to
912)
So in practice, its best not to screw with this stuff. Stick to modifing server notices
or other stuff that is implementation-specific. |
|
| Back to top |
|
 |
aquanight Lurker

Joined: 14 Jun 2004 Posts: 118 Location: Boise, ID
|
Posted: Oct 23, 2004 12:29am Post subject: |
|
|
| Not to mention that you should confine non-error numerics to the 200 or 300 range. |
|
| Back to top |
|
 |
|