summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp4
-rw-r--r--src/modules/m_auditorium.cpp2
-rw-r--r--src/modules/m_namesx.cpp4
-rw-r--r--src/modules/m_spy.cpp4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 4b5cb7fc3..5169fbf63 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -834,7 +834,7 @@ void chanrec::UserList(userrec *user, CUList *ulist)
if (MOD_RESULT == 1)
return;
- dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, this->name);
+ dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name);
int numusers = 0;
char* ptr = list + dlen;
@@ -876,7 +876,7 @@ void chanrec::UserList(userrec *user, CUList *ulist)
user->WriteServ(std::string(list));
/* reset our lengths */
- dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, this->name);
+ dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name);
ptr = list + dlen;
ptrlen = 0;
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp
index de54a22bb..974f1e1d4 100644
--- a/src/modules/m_auditorium.cpp
+++ b/src/modules/m_auditorium.cpp
@@ -111,7 +111,7 @@ class ModuleAuditorium : public Module
else
{
/* HELLOOO, IS ANYBODY THERE? -- nope, just us. */
- user->WriteServ("353 %s = %s :%s", user->nick, Ptr->name, user->nick);
+ user->WriteServ("353 %s %c %s :%s", user->nick, Ptr->IsModeSet('s') ? '@' : Ptr->IsModeSet('p') ? '*' : '=', Ptr->name, user->nick);
user->WriteServ("366 %s %s :End of /NAMES list.", user->nick, Ptr->name);
return 1;
}
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp
index b3741a457..e97ec8e1b 100644
--- a/src/modules/m_namesx.cpp
+++ b/src/modules/m_namesx.cpp
@@ -76,7 +76,7 @@ class ModuleNamesX : public Module
{
char list[MAXBUF];
size_t dlen, curlen;
- dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, Ptr->name);
+ dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, Ptr->IsModeSet('s') ? '@' : Ptr->IsModeSet('p') ? '*' : '=', Ptr->name);
int numusers = 0;
char* ptr = list + dlen;
@@ -103,7 +103,7 @@ class ModuleNamesX : public Module
/* list overflowed into multiple numerics */
user->WriteServ(std::string(list));
/* reset our lengths */
- dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, Ptr->name);
+ dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, Ptr->IsModeSet('s') ? '@' : Ptr->IsModeSet('p') ? '*' : '=', Ptr->name);
ptr = list + dlen;
ptrlen = 0;
numusers = 0;
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;