From 423a1d78a06c1548fa6edae7a09be8afc63580a9 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 12:37:35 +0000 Subject: Improved efficiency of chanrec constructor (removed strcpys) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2633 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/channels.cpp b/src/channels.cpp index 011469d47..fee297ec8 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -72,13 +72,8 @@ chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created); chanrec::chanrec() { - strcpy(name,""); - strcpy(custom_modes,""); - strcpy(topic,""); - strcpy(setby,""); - strcpy(key,""); - created = topicset = limit = 0; - binarymodes = 0; + *name = *custom_modes = *topic = *setby = *key = 0; + created = topicset = limit = binarymodes = 0; internal_userlist.clear(); } -- cgit v1.2.3