summaryrefslogtreecommitdiff
path: root/src/modules/m_spy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spy.cpp')
-rw-r--r--src/modules/m_spy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp
index e912fe6a1..60b893e1d 100644
--- a/src/modules/m_spy.cpp
+++ b/src/modules/m_spy.cpp
@@ -21,7 +21,7 @@ void spy_userlist(userrec *user, chanrec *c)
char list[MAXBUF];
size_t dlen, curlen;
- dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, c->name);
+ dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, c->IsModeSet('s') ? '@' : c->IsModeSet('p') ? '*' : '=', c->name);
int numusers = 0;
char* ptr = list + dlen;
@@ -43,7 +43,7 @@ void spy_userlist(userrec *user, chanrec *c)
user->WriteServ(std::string(list));
/* reset our lengths */
- dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, c->name);
+ dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, c->IsModeSet('s') ? '@' : c->IsModeSet('p') ? '*' : '=', c->name);
ptr = list + dlen;
ptrlen = 0;