From 3cf1ae04704b4f1706daa1077b90fd14d1e72cef Mon Sep 17 00:00:00 2001 From: om Date: Sat, 1 Jul 2006 11:42:09 +0000 Subject: Replace rather craq'y loop with a couple of std::string calls Change GetServerDescription to take const char* rather than char* Change userrec::server from char* to const char*, this is more 'correct' as it's not safe to modify it (pointer as returned by std::string::c_str()) Change WhoWasGroup::server, see above about userrec::server git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4094 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index 25db5eb08..0d812c0a4 100644 --- a/include/users.h +++ b/include/users.h @@ -170,7 +170,7 @@ class userrec : public connection /** The server the user is connected to. */ - char* server; + const char* server; /** The user's away message. * If this string is empty, the user is not marked as away. @@ -375,7 +375,7 @@ class WhoWasGroup char* host; char* dhost; char* ident; - char* server; + const char* server; char* gecos; time_t signon; -- cgit v1.2.3