projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed fail from NurPech
[srvx.git]
/
src
/
chanserv.c
diff --git
a/src/chanserv.c
b/src/chanserv.c
index 19a5c5776587b121248a86ecef4aab8b5bfe9030..a2f6175f5ef619b936f9064435ffcda8f9daba31 100644
(file)
--- a/
src/chanserv.c
+++ b/
src/chanserv.c
@@
-1523,7
+1523,7
@@
unregister_channel(struct chanData *channel, const char *reason)
if(channel->expiry)
timeq_del(channel->expiry, chanserv_expire_channel, channel, 0);
channel->channel->channel_info = NULL;
if(channel->expiry)
timeq_del(channel->expiry, chanserv_expire_channel, channel, 0);
channel->channel->channel_info = NULL;
-
+ sprintf(msgbuf, "%s %s", channel->channel->name, reason);
dict_delete(channel->notes);
if(!IsSuspended(channel))
DelChannelUser(chanserv, channel->channel, msgbuf, 0);
dict_delete(channel->notes);
if(!IsSuspended(channel))
DelChannelUser(chanserv, channel->channel, msgbuf, 0);
@@
-2168,7
+2168,6
@@
static CHANSERV_FUNC(cmd_register)
struct handle_info *handle;
struct chanData *cData;
struct modeNode *mn;
struct handle_info *handle;
struct chanData *cData;
struct modeNode *mn;
- char reason[MAXLEN];
char *chan_name;
unsigned int new_channel, force=0;
struct do_not_register *dnr;
char *chan_name;
unsigned int new_channel, force=0;
struct do_not_register *dnr;
@@
-7988,7
+7987,7
@@
chanserv_conf_read(void)
str = database_get_data(conf_node, "off_channel", RECDB_QSTRING);
off_channel = str ? atoi(str) : 0;
str = database_get_data(conf_node, "off_channel", RECDB_QSTRING);
off_channel = str ? atoi(str) : 0;
- str = database_get_data(conf_node, "oper_chan", RECDB_QSTRING);
+ str = database_get_data(conf_node, "oper_chan
nel
", RECDB_QSTRING);
if(str)
{
chanserv_conf.oper_channel = AddChannel(str, now, "+tinms", NULL);
if(str)
{
chanserv_conf.oper_channel = AddChannel(str, now, "+tinms", NULL);