summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/hashcomp.h4
-rw-r--r--src/hashcomp.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index b8921ced2..7ec813ad6 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -142,7 +142,7 @@ std::istream& operator>>(std::istream &is, irc::string &str);
std::string operator+ (std::string& leftval, irc::string& rightval);
irc::string operator+ (irc::string& leftval, std::string& rightval);
-std::string operator== (std::string& leftval, irc::string& rightval);
-irc::string operator== (irc::string& leftval, std::string& rightval);
+bool operator== (std::string& leftval, irc::string& rightval);
+bool operator== (irc::string& leftval, std::string& rightval);
#endif
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 3c29a1910..e94813420 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -159,7 +159,7 @@ bool operator== (std::string& leftval, irc::string& rightval)
bool operator== (irc::string& leftval, std::string& rightval)
{
- return (rightval == irc::string(leftval.c_str()));
+ return (rightval == std::string(leftval.c_str()));
}
const char* irc::irc_char_traits::find(const char* s1, int n, char c)