Peace and Protection forum

Theme colored /whois "fix" for ircu (319/330/338)

craze - 17-6-2009 at 11:18

To make /whois replies prettier on ircu type servers with host hiding (ie. UnderNet), I have included the following code in my remotes.

330 (New line)
Following code lines up 'logged in as' messages properly and applies colors from selected theme:
Code:
raw &330:*:{ hadd pnp.twhois. $+ $cid text $4- $+($chr(3),$:c2,$3,$chr(3)) | haltdef }


338 (New line)
This one uses information from the 'actual IP/hostmask' message to replace the masked host. (Potentially useful for server operators, as it's only visible on your own /whois otherwise.)
Code:
raw &338:*:{ hadd pnp.twhois. $+ $cid address $+($chr(3),$:c2,$3,$chr(3)) $+($chr(91),$chr(3),$:c2,$4,$chr(3),$chr(93)) (hidden by +x) | haltdef }


319 (Modified line)
In addition, to properly color the prefix '<' on delayed joins, I have changed the line
Code:
while (($left(%chan,1) isin ~^* $+ $prefix) && ($mid(%chan,2,1) isin $prefix $+ $chantypes)) {

in rawdisp.mrc line 370 to read
Code:
while (($left(%chan,1) isin ~^*< $+ $prefix) && ($mid(%chan,2,1) isin $prefix $+ $chantypes)) {
noting the added < in the middle.

[Edited on 18-Jun-2009 by craze]

SiD - 23-7-2012 at 22:21

whois without any modification and/or new line in rawdisp.mrc (control code include)

6[16:17:19] [ UnderNet : SiD ] 01*02*12* 10NightStalker is 10kill@10leondegrelle.users.undernet.org
06[16:17:19] [ UnderNet : SiD ] 01*02*12* 01NightStalker is «12kill»
06[16:17:19] [ UnderNet : SiD ] 01*02*12* 01NightStalker on 10*.undernet.org «12The Undernet Underworld»
06[16:17:19] [ UnderNet : SiD ] 01*02*12* 01NightStalker leondegrelle is logged in as
06[16:17:19] [ UnderNet : SiD ] 01*02*12* 01NightStalker on 10#montreal, 10#quebec
06[16:17:19] [ UnderNet : SiD ] 01*02*12* 01NightStalker idle 121 s, signed on «12Mon 23rd Jul 2012 11:55:00»
06[16:17:19] 01*02*12* 01········02········12········14········15········


now the whois with those 2 line added + the modified one (i added the 2 line to the end of rawdisp.mrc)

6[16:19:35] [ UnderNet : SiD ] 01*02*12* 10NightStalker is 10kill@10leondegrelle.users.undernet.org
06[16:19:36] [ UnderNet : SiD ] 01*02*12* 01NightStalker is «12kill»
06[16:19:36] [ UnderNet : SiD ] 01*02*12* 01NightStalker on 10*.undernet.org «12The Undernet Underworld»
06[16:19:36] [ UnderNet : SiD ] 01*02*12* 01NightStalker leondegrelle is logged in as
06[16:19:36] [ UnderNet : SiD ] 01*02*12* 01NightStalker on 10#montreal, 10#quebec
06[16:19:36] [ UnderNet : SiD ] 01*02*12* 01NightStalker idle 127 s, signed on «12Mon 23rd Jul 2012 11:55:00»
06[16:19:36] 01*02*12* 01········02········12········14········15········

i dont see any change/addition?