summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-03 13:04:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-03 13:04:48 +0000
commit0e74a337265b2e8384f75deab816ae92f532ff08 (patch)
tree3c15d6dab027ad2aa39cbddff219ab23bae879be /src/inspircd.cpp
parent23303627e1c689b825445af20d682c886a800bb6 (diff)
Added opertype propogation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@788 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4250bdc75..018bdf133 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2953,6 +2953,11 @@ void DoSync(serverrec* serv, char* tcp_host)
{
snprintf(data,MAXBUF,"N %d %s %s %s %s +%s %s %s :%s",u->second->age,u->second->nick,u->second->host,u->second->dhost,u->second->ident,u->second->modes,u->second->ip,u->second->server,u->second->fullname);
serv->SendPacket(data,tcp_host);
+ if (strchr(u->second->modes,'o'))
+ {
+ snprintf(data,MAXBUF,"| %s %s",u->second->nick,u->second->oper);
+ serv->SendPacket(data,tcp_host);
+ }
for (int i = 0; i <= MODCOUNT; i++)
{
string_list l = modules[i]->OnUserSync(u->second);