summaryrefslogtreecommitdiff
path: root/src/modules/m_namesx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_namesx.cpp')
-rw-r--r--src/modules/m_namesx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp
index 535f6ec10..e2b3efce3 100644
--- a/src/modules/m_namesx.cpp
+++ b/src/modules/m_namesx.cpp
@@ -105,7 +105,7 @@ class ModuleNamesX : public Module
// Try to find this channel
std::string channame = line.substr(a, b-a);
- Channel* chan = ServerInstance->FindChan(channame.c_str());
+ Channel* chan = ServerInstance->FindChan(channame);
if (!chan)
return;