Add trace-style DNR searching capabilities.
authorMichael Poole <mdpoole@troilus.org>
Wed, 14 Mar 2007 02:03:49 +0000 (22:03 -0400)
committerMichael Poole <mdpoole@troilus.org>
Wed, 14 Mar 2007 02:03:49 +0000 (22:03 -0400)
commit9141dc609ef3edf43028f26f63f4da5013ff631a
tree7f7db671d9ca74aada25b670e20328a534839b97
parentd6e598e79cf61e680572c463bdeb271c03ee44f4
Add trace-style DNR searching capabilities.

src/chanserv.c (msgtab): Separate DNR info strings for easier translation.
    Add DNR bad-action and search results strings.
  (dnr_print_func): New function to reduce code duplication.
  (chanserv_show_dnrs): Use dnr_print_func() instead of doing the display
    in this function.
  (send_dnrs): Likewise.
  (cmd_allowregister): Simplify checks for DNR existence and removal.
  (struct dnr_search): New type.
  (dnr_search_matches): New function.
  (dnr_search_create): New function.
  (dnr_search_func): New typedef.
  (dnr_search): New function.
  (dnr_remove_func): New function.
  (cmd_dnrsearch): New function.
  (init_chanserv): Register dnrsearch and its subcommands.

src/chanserv.help: Document DNRSEARCH command.
src/chanserv.c
src/chanserv.help