Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

Modifying Unreal

 
Post new topic   Reply to topic    SearchIRC Forum Index -> IRCD & Network Services
Author Message
Pierce
none
none


Joined: 09 Feb 2004
Posts: 47

PostPosted: Oct 21, 2004 8:42am    Post subject: Modifying Unreal Reply with quote

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
Lurker


Joined: 14 Jun 2004
Posts: 118
Location: Boise, ID

PostPosted: Oct 21, 2004 8:50am    Post subject: Reply with quote

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
none


Joined: 09 Feb 2004
Posts: 47

PostPosted: Oct 21, 2004 11:10am    Post subject: Reply with quote

all right, thanks for that

Pierce
Back to top
olene
Newbie
Newbie


Joined: 31 Jul 2004
Posts: 61
Location: olene on DALnet

PostPosted: Oct 22, 2004 9:13am    Post subject: Reply with quote

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
Lurker


Joined: 14 Jun 2004
Posts: 118
Location: Boise, ID

PostPosted: Oct 23, 2004 12:29am    Post subject: Reply with quote

Not to mention that you should confine non-error numerics to the 200 or 300 range.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> IRCD & Network Services All times are GMT - 6 Hours
Page 1 of 1

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer