mirror of
https://github.com/anope/anope.git
synced 2026-07-05 03:53:12 +02:00
Epic commit to replace most of the strings in Anope with a single Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing.
This commit is contained in:
+3
-16
@@ -18,7 +18,7 @@ IRCDProto *ircdproto;
|
||||
* Globals we want from the protocol file
|
||||
**/
|
||||
IRCDVar *ircd;
|
||||
char *version_protocol;
|
||||
Anope::string version_protocol;
|
||||
int UseTSMODE;
|
||||
|
||||
void pmodule_ircd_proto(IRCDProto *proto)
|
||||
@@ -26,19 +26,6 @@ void pmodule_ircd_proto(IRCDProto *proto)
|
||||
ircdproto = proto;
|
||||
}
|
||||
|
||||
void anope_SendNumeric(const char *source, int numeric, const char *dest, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char buf[BUFSIZE] = "";
|
||||
if (fmt)
|
||||
{
|
||||
va_start(args, fmt);
|
||||
vsnprintf(buf, BUFSIZE - 1, fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
ircdproto->SendNumeric(source, numeric, dest, buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set routines for modules to set the prefered function for dealing with things.
|
||||
**/
|
||||
@@ -47,9 +34,9 @@ void pmodule_ircd_var(IRCDVar *ircdvar)
|
||||
ircd = ircdvar;
|
||||
}
|
||||
|
||||
void pmodule_ircd_version(const char *version)
|
||||
void pmodule_ircd_version(const Anope::string &version)
|
||||
{
|
||||
version_protocol = sstrdup(version);
|
||||
version_protocol = version;
|
||||
}
|
||||
|
||||
void pmodule_ircd_useTSMode(int use)
|
||||
|
||||
Reference in New Issue
Block a user