Menu

#1 strips colors from quit messages

open
nobody
None
5
2004-03-30
2004-03-30
No

--- oftc-hybrid/modules/core/m_quit.c 2003-08-14
03:51:18.000000000 -0400
+++ hack-hybrid/modules/core/m_quit.c 2004-03-29
22:07:31.000000000 -0500
@@ -67,6 +67,13 @@
m_quit(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
+
+ if (msg_has_colors(parv[1]))
+ {
+ parv[1] = strip_color(parv[1]);
+ }
+
+
char *comment = (parc > 1 && parv[1]) ? parv[1] :
client_p->name;
char reason[TOPICLEN + 1] = "Quit: ";

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.