summaryrefslogtreecommitdiff
path: root/src/ircd.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-25 21:58:20 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-25 21:58:20 -0400
commitae38212c1ce829c783edf971081c90137abb49a0 (patch)
tree5c652d9cdc38103dec6fa112d57fca882b4e3e44 /src/ircd.cpp
parent15d7f0f6fe8bb903275f603f734c13f65f3aa906 (diff)
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.
Diffstat (limited to 'src/ircd.cpp')
-rw-r--r--src/ircd.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/ircd.cpp b/src/ircd.cpp
index c06237a1b..e6ac76079 100644
--- a/src/ircd.cpp
+++ b/src/ircd.cpp
@@ -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)