summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}