summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:37:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:37:35 +0000
commit423a1d78a06c1548fa6edae7a09be8afc63580a9 (patch)
treef15810c33c1c7b89016bd746d44c06d3ab7b9406 /src/channels.cpp
parent4c65d06850f4440498ee37387d7b578478a619aa (diff)
Improved efficiency of chanrec constructor (removed strcpys)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2633 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp9
1 files changed, 2 insertions, 7 deletions
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();
}