[srvx-commits] CVS: services/src helpserv.c,1.28,1.29
Brought to you by:
entrope
|
From: Adrian D. <sai...@us...> - 2002-08-24 19:12:06
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv9420
Modified Files:
helpserv.c
Log Message:
Make HelpServ give credit to the first person to join the help channel after an empty alert
Rearrange the todo/wish lists
Index: helpserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/helpserv.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** helpserv.c 18 Aug 2002 16:25:09 -0000 1.28
--- helpserv.c 24 Aug 2002 19:11:59 -0000 1.29
***************
*** 20,26 ****
/* TODO List for helpserv.c
! * - ?clone uses a new way to check for a valid nick name (for multi-protocol support) - need to do that in ?helpserv register
! * - cmd_close should optionally take another argument (a reason/comment)
* Wishlist for helpserv.c
* - Let HelpServ accept "close nick|*handle", and make it work if there's
* only one request open to the target. complain and list request IDs if
--- 20,28 ----
/* TODO List for helpserv.c
! * - A feature suggestion was to let it also show the waiting users in the
! * help channel, in the order they joined, along with wait time (like
! * eggdrop's .channel command)
* Wishlist for helpserv.c
+ * - cmd_close should optionally take another argument (a reason/comment)
* - Let HelpServ accept "close nick|*handle", and make it work if there's
* only one request open to the target. complain and list request IDs if
***************
*** 34,40 ****
* - Allow helpers to switch to help mode (I'm not entirely sure the use of
* this)
- * - A feature suggestion was to let it also show the waiting users in the
- * help channel, in the order they joined, along with wait time (like
- * eggdrop's .channel command)
* - Something for users to use a subset of commands... like closing their
* own request(s), viewing what they've sent so far, and finding their
--- 36,39 ----
***************
*** 206,209 ****
--- 205,209 ----
#define HSMSG_PAGE_EMPTYALERT "$b%s has no helpers present$b"
#define HSMSG_PAGE_ONLYTRIALALERT "$b%s has no full helpers present (%d trial%s)$b"
+ #define HSMSG_PAGE_EMPTYNOMORE "%s has joined %s; cancelling the \"no helpers present\" alert"
/* Notification messages */
***************
*** 1177,1181 ****
unsigned int i;
- /* TODO: cmd_close should optionally take another argument (a reason/comment) */
REQUIRE_PARMS(2);
--- 1177,1180 ----
***************
*** 3149,3152 ****
--- 3148,3156 ----
if ((hs_user = dict_find(hs->users, user->handle_info->handle, NULL))) {
if (!hs_user->join_time) hs_user->join_time = now;
+
+ if (hs_user->level >= HlHelper && hs->intervals[INTERVAL_EMPTY_INTERVAL]) {
+ timeq_del(0, run_empty_interval, hs, TIMEQ_IGNORE_WHEN);
+ helpserv_page(PGSRC_ALERT, HSMSG_PAGE_EMPTYNOMORE, user->nick, hs->helpchan->name);
+ }
}
}
|