[srvx-commits] CVS: services/src mod-memoserv.c,1.1,1.2
Brought to you by:
entrope
From: Entrope <en...@us...> - 2003-08-22 09:36:31
|
Update of /cvsroot/srvx/services/src In directory sc8-pr-cvs1:/tmp/cvs-serv22303/src Modified Files: mod-memoserv.c Log Message: fix "delete * confirm" check fix min_argc for "set <option>" commands Index: mod-memoserv.c =================================================================== RCS file: /cvsroot/srvx/services/src/mod-memoserv.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mod-memoserv.c 18 Aug 2003 19:35:50 -0000 1.1 --- mod-memoserv.c 21 Aug 2003 03:59:35 -0000 1.2 *************** *** 271,275 **** if (!(ma = memoserv_get_account(user->handle_info))) return 0; if (!irccasecmp(argv[1], "*") || !irccasecmp(argv[1], "all")) { ! if ((argc < 3) || !irccasecmp(argv[2], "confirm")) { reply(MSMSG_USE_CONFIRM); return 0; --- 271,275 ---- if (!(ma = memoserv_get_account(user->handle_info))) return 0; if (!irccasecmp(argv[1], "*") || !irccasecmp(argv[1], "all")) { ! if ((argc < 3) || irccasecmp(argv[2], "confirm")) { reply(MSMSG_USE_CONFIRM); return 0; *************** *** 540,546 **** modcmd_register(memoserv_module, "expiry", cmd_expiry, 1, 0, NULL); modcmd_register(memoserv_module, "status", cmd_status, 1, 0, NULL); ! modcmd_register(memoserv_module, "set notify", cmd_set_notify, 3, 0, NULL); ! modcmd_register(memoserv_module, "set authnotify", cmd_set_authnotify, 3, 0, NULL); ! modcmd_register(memoserv_module, "set private", cmd_set_private, 3, 0, NULL); modcmd_register(memoserv_module, "version", cmd_version, 1, 0, NULL); --- 540,546 ---- modcmd_register(memoserv_module, "expiry", cmd_expiry, 1, 0, NULL); modcmd_register(memoserv_module, "status", cmd_status, 1, 0, NULL); ! modcmd_register(memoserv_module, "set notify", cmd_set_notify, 1, 0, NULL); ! modcmd_register(memoserv_module, "set authnotify", cmd_set_authnotify, 1, 0, NULL); ! modcmd_register(memoserv_module, "set private", cmd_set_private, 1, 0, NULL); modcmd_register(memoserv_module, "version", cmd_version, 1, 0, NULL); |