X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/9bafc40df91539963591e7f114012c2f5635e7e3..6f727d4c9eb5c886f14598577f40da583577444e:/gameserv/gameserv.cpp diff --git a/gameserv/gameserv.cpp b/gameserv/gameserv.cpp index 923cd5a..164a90c 100644 --- a/gameserv/gameserv.cpp +++ b/gameserv/gameserv.cpp @@ -467,16 +467,16 @@ void notice(const char *source, const char *dest, const char *fmt, ...) commanduse = new char[16]; #ifdef P10 - if (isUsePrivmsg(configflags)) - strncpy(commanduse, "P", 1); + if (isUsePrivmsg()) + strcpy(commanduse, "P"); else - strncpy(commanduse, "N", 1); + strcpy(commanduse, "N"); #else - if (isUsePrivmsg(configflags)) - strncpy(commanduse, "PRIVMSG", 7); + if (isUsePrivmsg()) + strcpy(commanduse, "PRIVMSG"); else - strncpy(commanduse, "NOTICE", 6); + strcpy(commanduse, "NOTICE"); #endif va_list args;