diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-01 11:42:09 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-01 11:42:09 +0000 |
commit | 3cf1ae04704b4f1706daa1077b90fd14d1e72cef (patch) | |
tree | 05e914b6723cff559175d41389f2c15d52fa4b24 /include/helperfuncs.h | |
parent | a3a9d3e0f0b9680bdb9e8700dc6a43b9c8278977 (diff) |
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
Diffstat (limited to 'include/helperfuncs.h')
-rw-r--r-- | include/helperfuncs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/helperfuncs.h b/include/helperfuncs.h index 45c4da6f0..5eb6e22d8 100644 --- a/include/helperfuncs.h +++ b/include/helperfuncs.h @@ -72,7 +72,7 @@ void WriteCommon_NoFormat(userrec *u, const char* text); void WriteCommonExcept_NoFormat(userrec *u, const char* text); void WriteOpers_NoFormat(const char* text); -std::string GetServerDescription(char* servername); +std::string GetServerDescription(const char* servername); void WriteMode(const char* modes, int flags, const char* text, ...); void NoticeAll(userrec *source, bool local_only, char* text, ...); void ServerNoticeAll(char* text, ...); |