OpenFusion/src/Chat.hpp

14 lines
303 B
C++
Raw Permalink Normal View History

#pragma once
2020-08-18 20:42:30 +00:00
2020-10-02 23:50:47 +00:00
#define CMD_PREFIX '/'
#include "servers/CNShardServer.hpp"
2020-10-02 23:50:47 +00:00
namespace Chat {
2020-12-15 14:58:11 +00:00
extern std::vector<std::string> dump;
2020-08-18 20:42:30 +00:00
void init();
void sendServerMessage(CNSocket* sock, std::string msg); // uses MOTD
std::string sanitizeText(std::string text, bool allowNewlines=false);
2020-08-18 20:42:30 +00:00
}