summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-22 20:27:42 -0500
committerAdam <Adam@anope.org>2012-11-22 20:27:42 -0500
commit0e7bd9f3ba9ff8fe634fcf7d365ea2a984655d83 (patch)
treeb34876afa13c7fc0e2d0a1e585be0f190854731f
parent796353494062ef45389c196b119f04e6abcd114e (diff)
Fix compile/pch generation
-rw-r--r--include/language.h2
-rw-r--r--modules/protocol/ngircd.cpp3
-rw-r--r--src/socketengines/pipeengine_pipe.cpp14
3 files changed, 10 insertions, 9 deletions
diff --git a/include/language.h b/include/language.h
index eeb23af02..eab1526b1 100644
--- a/include/language.h
+++ b/include/language.h
@@ -7,6 +7,8 @@
*
*/
+#include "anope.h"
+
namespace Language
{
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index 6baad0edd..afde10439 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -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();
}
diff --git a/src/socketengines/pipeengine_pipe.cpp b/src/socketengines/pipeengine_pipe.cpp
index e15f0274d..b05c50582 100644
--- a/src/socketengines/pipeengine_pipe.cpp
+++ b/src/socketengines/pipeengine_pipe.cpp
@@ -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);
}