diff options
| author | Alexander Barton <alex@barton.de> | 2008-12-30 19:23:03 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2008-12-30 19:23:03 +0100 |
| commit | 0e4e22a7a671d1e8efbc44bffd80062191f75c38 (patch) | |
| tree | 88d759edd63fcdb22a484c62da7192977bcf223f /src | |
| parent | 9d20397470e579e603897dc4e3a80538e278491f (diff) | |
| download | ngircd-0e4e22a7a671d1e8efbc44bffd80062191f75c38.tar.gz ngircd-0e4e22a7a671d1e8efbc44bffd80062191f75c38.zip | |
Allow pre-defined server local channels ("&").
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index c82ac2bf..fc12cd9b 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -1,6 +1,6 @@ /* * 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 * 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); char *dest = new_chan->name; - /* - * channels must begin with &, +, or '#', if it is + /* Channels names must begin with "&" or "#", if it is * missing, add a '#'. This is only here for user convenience. */ - if (*name && *name != '#') { + if (*name && *name != '#' && *name != '&') { *dest = '#'; --size; ++dest; |