mirror of
https://github.com/anope/anope.git
synced 2026-06-29 19:36:37 +02:00
Fix compile/pch generation
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "anope.h"
|
||||
|
||||
namespace Language
|
||||
{
|
||||
|
||||
|
||||
@@ -159,8 +159,7 @@ class ngIRCdProto : public IRCDProto
|
||||
{
|
||||
if (!u->HasMode(UMODE_CLOAK))
|
||||
{
|
||||
const BotInfo *bi = BotInfo::Find(Config->HostServ);
|
||||
u->SetMode(bi, UMODE_CLOAK);
|
||||
u->SetMode(HostServ, UMODE_CLOAK);
|
||||
// send the modechange before we send the vhost
|
||||
ModeManager::ProcessModes();
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
Pipe::Pipe() : Socket(-1), WritePipe(-1)
|
||||
Pipe::Pipe() : Socket(-1), write_pipe(-1)
|
||||
{
|
||||
int fds[2];
|
||||
if (pipe(fds))
|
||||
@@ -29,17 +29,17 @@ Pipe::Pipe() : Socket(-1), WritePipe(-1)
|
||||
|
||||
this->~Pipe();
|
||||
|
||||
this->Sock = fds[0];
|
||||
this->WritePipe = fds[1];
|
||||
this->sock = fds[0];
|
||||
this->write_pipe = fds[1];
|
||||
|
||||
SocketEngine::Sockets[this->Sock] = this;
|
||||
SocketEngine::Sockets[this->sock] = this;
|
||||
SocketEngine::Change(this, true, SF_READABLE);
|
||||
}
|
||||
|
||||
Pipe::~Pipe()
|
||||
{
|
||||
if (this->WritePipe >= 0)
|
||||
anope_close(this->WritePipe);
|
||||
if (this->write_pipe >= 0)
|
||||
anope_close(this->write_pipe);
|
||||
}
|
||||
|
||||
bool Pipe::ProcessRead()
|
||||
@@ -53,6 +53,6 @@ bool Pipe::ProcessRead()
|
||||
void Pipe::Notify()
|
||||
{
|
||||
const char dummy = '*';
|
||||
write(this->WritePipe, &dummy, 1);
|
||||
write(this->write_pipe, &dummy, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user