2020-08-23 17:14:54 +00:00
|
|
|
#pragma once
|
2020-08-18 20:42:30 +00:00
|
|
|
|
2020-10-02 23:50:47 +00:00
|
|
|
#define CMD_PREFIX '/'
|
|
|
|
|
2022-07-16 23:19:40 +00:00
|
|
|
#include "core/Core.hpp"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2020-10-02 23:50:47 +00:00
|
|
|
|
2021-03-16 22:29:13 +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();
|
|
|
|
|
2021-03-12 19:07:26 +00:00
|
|
|
void sendServerMessage(CNSocket* sock, std::string msg); // uses MOTD
|
2020-11-29 20:31:54 +00:00
|
|
|
std::string sanitizeText(std::string text, bool allowNewlines=false);
|
2020-08-18 20:42:30 +00:00
|
|
|
}
|