summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-27 12:54:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-27 12:54:25 +0000
commita8185fe0d335e983af2e9e54c8ca0024aa862a0d (patch)
tree7ff77b05fc0208b183e329c7204f59a884b80ab4 /src/inspircd.cpp
parenta809be2aa889019d71230acfc18e6390deb9a214 (diff)
Added extra services support stuff, fixed chanserv not deopping users on joining channels they dont have access to
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@741 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 3aa5ecaa8..864623299 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1452,7 +1452,14 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
{
// use the stamdard J token with no privilages.
char buffer[MAXBUF];
- snprintf(buffer,MAXBUF,"J %s %s",user->nick,Ptr->name);
+ if (created == 2)
+ {
+ snprintf(buffer,MAXBUF,"J %s @%s",user->nick,Ptr->name);
+ }
+ else
+ {
+ snprintf(buffer,MAXBUF,"J %s %s",user->nick,Ptr->name);
+ }
NetSendToAll(buffer);
}