@@ -427,7 +427,9 @@ Events
427
427
428
428
Emitted when the client receives a "message" from the server.
429
429
A message is a single line of data from the server.
430
- The `message ` parameter to the callback is the processed version of this message, and contains::
430
+ The `message ` parameter to the callback is the processed version of this message, and contains:
431
+
432
+ .. code-block :: js
431
433
432
434
message = {
433
435
prefix: " [email protected] " , // the prefix for the message (optional, user prefix here)
@@ -474,27 +476,27 @@ Colors
474
476
475
477
Lists the colors available and the relevant mIRC color codes.
476
478
477
- ::
478
-
479
- {
480
- white: '\u 000300',
481
- black: '\u 000301',
482
- dark_blue: '\u 000302',
483
- dark_green: '\u 000303',
484
- light_red: '\u 000304',
485
- dark_red: '\u 000305',
486
- magenta: '\u 000306',
487
- orange: '\u 000307',
488
- yellow: '\u 000308',
489
- light_green: '\u 000309',
490
- cyan: '\u 000310',
491
- light_cyan: '\u 000311',
492
- light_blue: '\u 000312',
493
- light_magenta: '\u 000313',
494
- gray: '\u 000314',
495
- light_gray: '\u 000315',
496
- reset: '\u 000f',
497
- }
479
+ .. code-block :: js
480
+
481
+ {
482
+ white: ' \u0003 00' ,
483
+ black: ' \u0003 01' ,
484
+ dark_blue: ' \u0003 02' ,
485
+ dark_green: ' \u0003 03' ,
486
+ light_red: ' \u0003 04' ,
487
+ dark_red: ' \u0003 05' ,
488
+ magenta: ' \u0003 06' ,
489
+ orange: ' \u0003 07' ,
490
+ yellow: ' \u0003 08' ,
491
+ light_green: ' \u0003 09' ,
492
+ cyan: ' \u0003 10' ,
493
+ light_cyan: ' \u0003 11' ,
494
+ light_blue: ' \u0003 12' ,
495
+ light_magenta: ' \u0003 13' ,
496
+ gray: ' \u0003 14' ,
497
+ light_gray: ' \u0003 15' ,
498
+ reset: ' \u000f ' ,
499
+ }
498
500
499
501
Internal
500
502
------
0 commit comments