X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/fa86a9e7614735d9ac02c02f35d142a3e4329792..964a842d8f29eb5767e64d2028a36cc40ccec911:/src/proto-p10.c diff --git a/src/proto-p10.c b/src/proto-p10.c index 44654ae..7e85830 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -1805,7 +1805,15 @@ static CMD_FUNC(cmd_mark) return 0; } - target->version_reply = strdup(unsplit_string(argv + 3, argc - 3, NULL)); + char *version = unsplit_string(argv + 3, argc - 3, NULL); + if(!version) + version = ""; + + target->version_reply = strdup(version); + + if(match_ircglob(version, "WebTV;*")) + target->no_notice = true; /* webbies cant see notices */ + return 1; } /* unknown type of mark */