From 396c9ef9f7a96934d3227bb7d1d091315e3d4fa8 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 14:43:29 +0000 Subject: FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass, WriteOpers, GetServerDescription -> into classes ServerConfig takes InspIRCd pointer in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_gline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd_gline.cpp') diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp index 2b774fb1d..ea526f8c8 100644 --- a/src/cmd_gline.cpp +++ b/src/cmd_gline.cpp @@ -41,11 +41,11 @@ void cmd_gline::Handle (const char** parameters, int pcnt, userrec *user) if (!duration(parameters[1])) { - WriteOpers("*** %s added permanent G-line for %s.",user->nick,parameters[0]); + ServerInstance->WriteOpers("*** %s added permanent G-line for %s.",user->nick,parameters[0]); } else { - WriteOpers("*** %s added timed G-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1])); + ServerInstance->WriteOpers("*** %s added timed G-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1])); } apply_lines(APPLY_GLINES); @@ -55,7 +55,7 @@ void cmd_gline::Handle (const char** parameters, int pcnt, userrec *user) if (del_gline(parameters[0])) { FOREACH_MOD(I_OnDelGLine,OnDelGLine(user, parameters[0])); - WriteOpers("*** %s Removed G-line on %s.",user->nick,parameters[0]); + ServerInstance->WriteOpers("*** %s Removed G-line on %s.",user->nick,parameters[0]); } else { -- cgit v1.2.3