Allow pre-defined server local channels ("&").

This commit is contained in:
Alexander Barton 2008-12-30 19:23:03 +01:00
parent 9d20397470
commit 0e4e22a7a6
1 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/* /*
* ngIRCd -- The Next Generation IRC Daemon * ngIRCd -- The Next Generation IRC Daemon
* Copyright (c)2001,2002 Alexander Barton (alex@barton.de) * Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -1168,11 +1168,10 @@ Handle_Channelname(struct Conf_Channel *new_chan, const char *name)
size_t size = sizeof(new_chan->name); size_t size = sizeof(new_chan->name);
char *dest = new_chan->name; char *dest = new_chan->name;
/* /* Channels names must begin with "&" or "#", if it is
* channels must begin with &, +, or '#', if it is
* missing, add a '#'. This is only here for user convenience. * missing, add a '#'. This is only here for user convenience.
*/ */
if (*name && *name != '#') { if (*name && *name != '#' && *name != '&') {
*dest = '#'; *dest = '#';
--size; --size;
++dest; ++dest;