do_who question

Posted by Yungen2003 on Sat 11 Nov 2006 02:04 AM — 7 posts, 29,157 views.

USA #0
im trying to configure a new who

i noticed this codebase uses define and i dont like that any suggestions? it uses ascii artwork in the who
USA #1
What do you mean by "uses define"?
USA #2

(@)              ___....___                    ___....___              (@)
|\'_       __.-''          ''-.___      ___.-''          ''-.__       _'/|
|   '''''''                       ''''''                       '''''''   |
|                                   .                                    |
|                                .   )   .                               |
|                          .    (   ((    )    .                         |
|            ..    ..     . )   )\  ) \  /(   (   .   ..    ..           |
|           (  )  (  )   ( (().(())(( ))(()).()) (   (  )  (  )          |
|             ())(().))()).((.(Chrono\|/CIDE).)).(()((.())(()            |
|           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          |
|                             "Whodesc."                                 |
|                                                                        |
|                 ---=+====<+> Immortal <+>====+=---                     |
|  LEvel = Class = Clan = IMMTITLE   = Alazair Title                     |
|                                                                        |
|                  ---=+====<+> Mortal <+>====+=---                      |
|  Status= Class = Clan = Name  Title                                    |
|                                                                        |
(                ___....___                    ___....___                )
 \._       __.-''          ''-.___      ___.-''          ''-.__       _./ 





it uses define for mortal and immortal and pkillport

#define WHOHEADER_MORTALS "`=\x81-========= `=\x96MORTALS `=\x81=========-`x\r\n"
#define WHOHEADER_IMMORTALS "`=\x82-======== `=\x83IMMORTALS `=\x82========-`x\r\n"
#define WHOHEADER_PKILL_PORT "`r-`R=`r=`R=`r=`R=`r=`R=`r=`R=`r=`R=`r= `R P K I L L P O R T `r=`R=`r=`R=`r=`R=`r=`R=`r=`R=`r-`x\r\n"
Amended on Tue 14 Nov 2006 07:43 PM by Nick Gammon
USA #3
well...it didnt show exactly right but think basic 2.4 rom
USA #4
What about the define is it that bothers you?

(To fix the text display, edit your post and use the [code] tags.)
USA #5
well.....

what dont like about the define it it makes it hard to do a ascii style who....or atleast i cant do it to my knowledge
USA #6
I'm really not sure I understand your problem. Why can't you just put whatever text into the #define that you want to display? You can put ASCII colors too as is evidenced by the `r,`R escape codes in one of the lines you pasted.