2 ===================================================================
3 RCS file: /data/cvs/bopm/src/main.c,v
4 retrieving revision 1.18
6 --- main.c 22 Jun 2003 13:19:39 -0000 1.18
7 +++ main.c 3 Sep 2006 20:11:46 -0000
9 /* Restart bopm if main_restart() was called (usually happens by m_kill in irc.c) */
12 + char *args[] = { "-c", CONFNAME, 0 };
14 /* If restarted in debug mode, die */
18 fcntl(i, F_SETFD, FD_CLOEXEC);
20 /* execute new process */
21 - if(execve(argv[0], argv, NULL) == -1)
22 + if(execve(argv[0], args, NULL) == -1)
23 log_printf("MAIN RESTART -> Execution of \"%s\" failed. ERROR: %s", argv[0], strerror(errno));
25 /* Should only get here if execve failed */
27 ===================================================================
28 RCS file: /data/cvs/bopm/src/opercmd.c,v
29 retrieving revision 1.12
30 diff -u -r1.12 opercmd.c
31 --- opercmd.c 25 Oct 2004 05:21:05 -0000 1.12
32 +++ opercmd.c 3 Sep 2006 20:11:46 -0000
34 static void cmd_check(char *, char *, struct ChannelConf *);
35 static void cmd_stat(char *, char *, struct ChannelConf *);
36 static void cmd_fdstat(char *, char *, struct ChannelConf *);
37 +static void cmd_conf(char *, char *, struct ChannelConf *);
39 static void cmd_op(char *, char *, struct ChannelConf *);
42 {"STATUS", cmd_stat },
43 {"FDSTAT", cmd_fdstat },
45 + {"CONF", cmd_conf },
53 +extern char *CONFNAME;
55 +static void cmd_conf(char *param, char *source, struct ChannelConf *target)
60 + && strlen(param) == strspn(param, "abcdefghijklmnopqrstuvwxyz"))
62 + CONFNAME = DupString(param);