summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 2abefa974..a71dd30bf 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1199,21 +1199,21 @@ class TreeSocket : public InspSocket
specific_voice.push_back(i->second);
}
- char n = 0;
+ const char* n = "";
if (x & UCMODE_OP)
{
- n = '@';
+ n = "@";
}
else if (x & UCMODE_HOP)
{
- n = '%';
+ n = "%";
}
else if (x & UCMODE_VOICE)
{
- n = '+';
+ n = "+";
}
- size_t ptrlen = snprintf(ptr, MAXBUF, " %c%s", n, i->second->nick);
+ size_t ptrlen = snprintf(ptr, MAXBUF, " %s%s", n, i->second->nick);
curlen += ptrlen;
ptr += ptrlen;