diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-10 12:02:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-10 12:02:29 +0000 |
commit | af8c5c23c996418c768bbba4c57dbc7a670b099e (patch) | |
tree | 352b379954515c9628a681b5659799c43fdbc43d | |
parent | e54d9d1e52ee53211c1d9f872b05f73bcd1c26b9 (diff) |
const references
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3624 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/commands.h | 6 | ||||
-rw-r--r-- | src/commands.cpp | 6 | ||||
-rwxr-xr-x | src/svn-rev.sh | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/commands.h b/include/commands.h index 0141b9eb2..1981b1688 100644 --- a/include/commands.h +++ b/include/commands.h @@ -31,9 +31,9 @@ bool is_uline(const char* server); long duration(const char* str); void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick); -bool host_matches_everyone(std::string mask, userrec* user); -bool ip_matches_everyone(std::string ip, userrec* user); -bool nick_matches_everyone(std::string nick, userrec* user); +bool host_matches_everyone(const std::string &mask, userrec* user); +bool ip_matches_everyone(const std::string &ip, userrec* user); +bool nick_matches_everyone(const std::string &nick, userrec* user); int operstrcmp(char* data,char* input); void split_chlist(userrec* user, userrec* dest, std::string &cl); diff --git a/src/commands.cpp b/src/commands.cpp index f60b85f67..f0f5ddf30 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -259,7 +259,7 @@ long duration(const char* str) /* All other ircds when doing this check usually just look for a string of *@* or *. We're smarter than that, though. */ -bool host_matches_everyone(std::string mask, userrec* user) +bool host_matches_everyone(const std::string &mask, userrec* user) { char insanemasks[MAXBUF]; char buffer[MAXBUF]; @@ -288,7 +288,7 @@ bool host_matches_everyone(std::string mask, userrec* user) return false; } -bool ip_matches_everyone(std::string ip, userrec* user) +bool ip_matches_everyone(const std::string &ip, userrec* user) { char insanemasks[MAXBUF]; char itrigger[MAXBUF]; @@ -313,7 +313,7 @@ bool ip_matches_everyone(std::string ip, userrec* user) return false; } -bool nick_matches_everyone(std::string nick, userrec* user) +bool nick_matches_everyone(const std::string &nick, userrec* user) { char insanemasks[MAXBUF]; char itrigger[MAXBUF]; diff --git a/src/svn-rev.sh b/src/svn-rev.sh index 1bd44ee51..c9ebce74d 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3621 +echo 3623 |