From 0318d9547e2b0a41c37a6ae82bb592081b570abd Mon Sep 17 00:00:00 2001 From: "mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 7 Oct 2007 18:00:05 +0000 Subject: BUILD : 1.7.19 (1310) BUGS : 794 NOTES : Fixes the segfault in inspircd11.c / anope_event_capab() on missing required modules. git-svn-id: svn://svn.anope.org/anope/trunk@1310 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1028 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/inspircd11.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 7c26e107d..0c2f1e1e1 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -1556,18 +1556,14 @@ int anope_event_capab(char *source, int ac, char **av) if (has_globopsmod == 0) { send_cmd(NULL, "ERROR :m_globops is not loaded. This is required by Anope"); - strscpy(quitmsg, - "Remote server does not have the m_globops module loaded, and this is required.", - sizeof(quitmsg)); + quitmsg = "Remote server does not have the m_globops module loaded, and this is required."; quitting = 1; return MOD_STOP; } if (has_servicesmod == 0) { send_cmd(NULL, "ERROR :m_services is not loaded. This is required by Anope"); - strscpy(quitmsg, - "Remote server does not have the m_services module loaded, and this is required.", - sizeof(quitmsg)); + quitmsg = "Remote server does not have the m_services module loaded, and this is required."; quitting = 1; return MOD_STOP; } -- cgit