1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 02:33:13 +02:00

Fixed compile from the earlier merge

This commit is contained in:
Adam
2011-05-19 20:36:39 -04:00
parent 13915d8b57
commit 7e5727288d
4 changed files with 44 additions and 5 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ class CommandBSSet : public Command
SyntaxError(source, "SET MSG", _("SET \037channel\037 MSG {\037OFF|PRIVMSG|NOTICE|\037}"));
}
else
source.Reply(_(UNKNOWN_OPTION), option.c_str(), Config->UseStrictPrivMsgString.c_str(), BotServ->nick.c_str(), this->name.c_str());
source.Reply(_(UNKNOWN_OPTION), option.c_str(), Config->UseStrictPrivMsgString.c_str(), Config->s_BotServ.c_str(), this->name.c_str());
}
return MOD_CONT;
+3 -3
View File
@@ -1019,7 +1019,7 @@ class DBMySQL : public Module
{
SQLQuery query("INSERT INTO `anope_cs_access` (level, display, channel, last_seen, creator) VALUES (@level, @display, @channel, @last_seen, @creator)");
query.setValue("level", access->level);
query.setValue("display", access->mask);
query.setValue("display", access->GetMask());
query.setValue("channel", ci->name);
query.setValue("last_seen", access->last_seen);
query.setValue("creator", access->creator);
@@ -1029,7 +1029,7 @@ class DBMySQL : public Module
void OnAccessDel(ChannelInfo *ci, User *u, ChanAccess *access)
{
SQLQuery query("DELETE FROM `anope_cs_access` WHERE `display` = @display AND `channel` = @channel");
query.setValue("display", access->mask);
query.setValue("display", access->GetMask());
query.setValue("channel", ci->name);
this->RunQuery(query);
}
@@ -1038,7 +1038,7 @@ class DBMySQL : public Module
{
SQLQuery query("INSERT INTO `anope_cs_access` (level, display, channel, last_seen, creator) VALUES (@level, @display, @channel, @last_seen, @creator) ON DUPLICATE KEY UPDATE level=VALUES(level), display=VALUES(display), channel=VALUES(channel), last_seen=VALUES(last_seen), creator=VALUES(creator)");
query.setValue("level", access->level);
query.setValue("display", access->mask);
query.setValue("display", access->GetMask());
query.setValue("channel", ci->name);
query.setValue("last_seen", access->last_seen);
query.setValue("creator", access->creator);
+39
View File
@@ -0,0 +1,39 @@
#ifndef OS_NEWS
#define OS_NEWS
enum NewsType
{
NEWS_LOGON,
NEWS_RANDOM,
NEWS_OPER
};
struct NewsMessages
{
NewsType type;
Anope::string name;
const char *msgs[10];
};
struct NewsItem
{
NewsType type;
Anope::string text;
Anope::string who;
time_t time;
};
class NewsService : public Service
{
public:
NewsService(Module *m) : Service(m, "news") { }
virtual void AddNewsItem(NewsItem *n) = 0;
virtual void DelNewsItem(NewsItem *n) = 0;
virtual std::vector<NewsItem *> &GetNewsList(NewsType t) = 0;
};
#endif // OS_NEWS
+1 -1
View File
@@ -44,7 +44,7 @@ Pipe::Pipe() : BufferedSocket()
this->WritePipe = fds[1];
this->IPv6 = false;
SocketEngine->AddSocket(this);
SocketEngine::AddSocket(this);
}
bool Pipe::ProcessRead()