1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 01:26:39 +02:00

Added a web panel module + a default template

This commit is contained in:
Adam
2012-09-01 18:54:51 -04:00
parent f81d0113a2
commit e3d5140dcc
68 changed files with 3360 additions and 34 deletions
+4 -3
View File
@@ -16,7 +16,8 @@
#include "access.h"
#include "regchannel.h"
CommandSource::CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *r) : nick(n), u(user), nc(core), reply(r)
CommandSource::CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *r) : nick(n), u(user), nc(core), reply(r),
c(NULL), owner(NULL), service(NULL)
{
}
@@ -90,7 +91,7 @@ void CommandSource::Reply(const char *message, ...)
va_list args;
char buf[4096]; // Messages can be really big.
const char *translated_message = translate(this->u, message);
const char *translated_message = translate(this->nc, message);
va_start(args, message);
vsnprintf(buf, sizeof(buf), translated_message, args);
@@ -102,7 +103,7 @@ void CommandSource::Reply(const char *message, ...)
void CommandSource::Reply(const Anope::string &message)
{
const char *translated_message = translate(this->u, message.c_str());
const char *translated_message = translate(this->nc, message.c_str());
sepstream sep(translated_message, '\n');
Anope::string tok;