From a8185fe0d335e983af2e9e54c8ca0024aa862a0d Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 27 Apr 2004 12:54:25 +0000 Subject: 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 --- src/inspircd.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/inspircd.cpp') 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); } -- cgit v1.2.3