From: nitroxis Date: Fri, 10 Jan 2014 19:47:29 +0000 (+0100) Subject: Small fixes for IRC. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bf89872175b47a5f46638a7de7449b51b769242;p=xonotic%2Fdarkplaces.git Small fixes for IRC. --- diff --git a/console.c b/console.c index 1bf3790a..7d260cc2 100644 --- a/console.c +++ b/console.c @@ -153,7 +153,7 @@ static char qfont_table[256] = { SanitizeString strips color tags from the string in and writes the result on string out */ -static void SanitizeString(char *in, char *out) +void SanitizeString(char *in, char *out) { while(*in) { diff --git a/console.h b/console.h index 860c501e..95c679e0 100644 --- a/console.h +++ b/console.h @@ -147,5 +147,7 @@ int ConBuffer_FindPrevLine(conbuffer_t *buf, int mask_must, int mask_mustnot, in int ConBuffer_FindNextLine(conbuffer_t *buf, int mask_must, int mask_mustnot, int start); const char *ConBuffer_GetLine(conbuffer_t *buf, int i); +void SanitizeString(char *in, char *out); + #endif diff --git a/host.c b/host.c index a7af4c0f..68b79c5f 100644 --- a/host.c +++ b/host.c @@ -33,6 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "snd_main.h" #include "thread.h" #include "utf8lib.h" +#include "irc.h" /* diff --git a/makefile.inc b/makefile.inc index e215245a..02c9051c 100644 --- a/makefile.inc +++ b/makefile.inc @@ -115,6 +115,7 @@ OBJ_COMMON= \ host_cmd.o \ image.o \ image_png.o \ + irc.o \ jpeg.o \ keys.o \ lhnet.o \