OpenFusion/src/Chat.hpp

17 lines
328 B
C++
Raw 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 "core/Core.hpp"
#include <string>
#include <vector>
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
}