small bugfix with operautojoins
This commit is contained in:
parent
35485ff7c5
commit
bc02f88498
2 changed files with 8 additions and 4 deletions
|
@ -19,9 +19,9 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: patchlevel.h,v 1.3 2002/09/13 06:50:06 fishwaldo Exp $
|
||||
* $Id: patchlevel.h,v 1.4 2002/09/17 06:50:46 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#ifndef PATCHLEVEL
|
||||
#define PATCHLEVEL "NeoIRCd 0.9.1"
|
||||
#define PATCHLEVEL "NeoIRCd 0.9.2"
|
||||
#endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: s_user.c,v 1.13 2002/09/17 06:09:35 fishwaldo Exp $
|
||||
* $Id: s_user.c,v 1.14 2002/09/17 06:50:46 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#include "stdinc.h"
|
||||
|
@ -1417,14 +1417,18 @@ oper_up( struct Client *source_p, struct ConfItem *aconf )
|
|||
SendMessageFile(source_p, &ConfigFileEntry.opermotd);
|
||||
|
||||
/* autojoin them to a channel if its defined */
|
||||
flags = 0;
|
||||
if (ConfigFileEntry.operautojoin) {
|
||||
sendto_one(source_p, "%s NOTICE %s :Autojoining you to %s", me.name, source_p->name, ConfigFileEntry.operautojoin);
|
||||
if ((chptr = hash_find_channel(ConfigFileEntry.operautojoin)) != NULL) {
|
||||
if (IsMember(source_p, chptr))
|
||||
return(1);
|
||||
if (chptr->users = 0)
|
||||
printf("already there %d\n", chptr->users);
|
||||
if (chptr->users == 0)
|
||||
flags = CHFL_ADMIN;
|
||||
|
||||
} else {
|
||||
printf("newchan\n");
|
||||
flags = CHFL_ADMIN;
|
||||
if (!ServerInfo.hub) {
|
||||
/* lazy links */
|
||||
|
|
Reference in a new issue