summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-23 18:58:13 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-23 18:58:13 +0000
commitc15707a0181a8eaebf2458bde11a9232acfb0194 (patch)
tree3d7ca2cf35759c156c4491086e0f4520af5a34fd /src/core
parent4bf22fa2e6192d2321593377d847ac676af4d856 (diff)
Fix bug with User::SetRealname crashing when a user with a custom GECOS connects.
Fix handling of Anope's current directory, binary name, binary directory, and data directory. This also fixes using /os restart if run from outside the bin directory. (The second fix above is a little hackish, should look into cleaning it up later.) git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2462 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/os_restart.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/os_restart.c b/src/core/os_restart.c
index 8de76c1c4..b80f88c5a 100644
--- a/src/core/os_restart.c
+++ b/src/core/os_restart.c
@@ -24,7 +24,6 @@ class CommandOSRestart : public Command
CommandReturn Execute(User *u, std::vector<ci::string> &params)
{
-#ifdef SERVICES_BIN
quitmsg = new char[31 + strlen(u->nick)];
if (!quitmsg)
quitmsg = "RESTART command received, but out of memory!";
@@ -35,9 +34,6 @@ class CommandOSRestart : public Command
oper_global(NULL, "%s", GlobalOnCycleMessage);
/* raise(SIGHUP); */
do_restart_services();
-#else
- notice_lang(s_OperServ, u, OPER_CANNOT_RESTART);
-#endif
return MOD_CONT;
}