summaryrefslogtreecommitdiff
path: root/bouncer/richtext.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bouncer/richtext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bouncer/richtext.h b/bouncer/richtext.h
index 608a1d6..c2f8d01 100644
--- a/bouncer/richtext.h
+++ b/bouncer/richtext.h
@@ -48,6 +48,11 @@ public:
void colour(bool background, int layer, int r, int g, int b) {
writeU8(0x10 + (background ? 4 : 0) + layer);
+
+ r >>= 1;
+ g >>= 1;
+ b >>= 1;
+
writeU8((r==0)?2:(r&254));
writeU8((g==0)?1:g);
writeU8((b==0)?1:b);
@@ -86,6 +91,7 @@ public:
}
void appendIRC(const char *str);
+ void appendNick(const char *nick);
const char *c_str();
};