diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-23 07:38:22 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-23 07:38:22 +0000 |
commit | e802b6dfe8ef0105389b69e17e7faa2e4c92d756 (patch) | |
tree | 7556cf902a0f943cb4bbc3b47b89fb13797ad4e1 /src/messages.c | |
parent | 40ec6f0854c2210e670199f701636d9d78ffa6c0 (diff) |
Some more Windows fixes, both in CMake and in the code itself. (I don't like the const casting for the latter, but it's only until we get rid of use of strchr)
Added CPack setup to automate generation of source package for *nix and NSIS installer for Windows.
Some other minor CMake fixes.
Converted docs/README and docs/WIN32.txt from Unix linefeeds to DOS linefeeds so they show up right in Notepad under Windows.
Added small fix for Visual Studio 2008, CMake doesn't detect the Express version correctly and it must be explicitly defined.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1861 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/messages.c')
-rw-r--r-- | src/messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages.c b/src/messages.c index 1a2445a66..b0e5fe710 100644 --- a/src/messages.c +++ b/src/messages.c @@ -148,7 +148,7 @@ int m_privmsg(const char *source, const char *receiver, const char *msg) /* If a server is specified (nick@server format), make sure it matches * us, and strip it off. */ - s = strchr(receiver, '@'); + s = const_cast<char *>(strchr(receiver, '@')); if (s) { *s++ = 0; if (stricmp(s, ServerName) != 0) |