From bab1af3e4a10b226ea0a0277a86cce6298d32066 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 9 Jan 2008 23:35:39 +0000 Subject: Fix some random crash due to my not knowing how to use STL *shrug* git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8684 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_rline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_rline.cpp') diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index 049d8ad35..f526f4fd9 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -60,7 +60,7 @@ class CoreExport RLine : public XLine bool Matches(User *u) { - std::string compare = compare.assign(u->nick) + "!" + u->ident + "@" + u->host + " " + u->fullname; + std::string compare = std::string(u->nick) + "!" + u->ident + "@" + u->host + " " + u->fullname; ServerInstance->Log(DEBUG, "Matching " + matchtext + " against string " + compare); @@ -126,7 +126,7 @@ class CoreExport RLineFactory : public XLineFactory class CommandRLine : public Command { public: - CommandRLine (InspIRCd* Instance) : Command(Instance,"RLINE", 1, 'o') + CommandRLine (InspIRCd* Instance) : Command(Instance,"RLINE", 'o', 1) { this->source = "m_rline.so"; } -- cgit v1.2.3