diff --git a/Changelog b/Changelog index 6b7907d..ca7a4fd 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2c01] +* Fix crash bug in $mircansi() scripting function. (caf) + * Add half-op support to /topic and /untopic. (caf) * Tidy up the URL grabber, fixing a memory leak. (caf) diff --git a/source/misc.c b/source/misc.c index 8d5c563..2cd5ce1 100644 --- a/source/misc.c +++ b/source/misc.c @@ -998,7 +998,7 @@ struct { if (code > 15 || code <= 0) code = code % 16; strcpy(dptr, codes[code].fg); while (*dptr) dptr++; - if (*sptr == ',') + if (*sptr == ',' && isdigit(sptr[1])) { sptr++; code = *sptr - '0';