]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Added a couple new directives to the config file
[irc/gameservirc.git] / gameserv / gameserv.cpp
index 923cd5a182266ff90ea93af3c119571060f335ae..164a90c006fb806bf32c7d9b716599a9c89d0f13 100644 (file)
@@ -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;