Add account notes.
authorMichael Poole <mdpoole@troilus.org>
Sun, 11 Mar 2007 23:23:20 +0000 (19:23 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 11 Mar 2007 23:23:20 +0000 (19:23 -0400)
commit93c1b8e63fd363a61a0eac9ecf8883d389d0cc5a
treea2713b49bc27200f378b09254d3780211d25478e
parent11db245c1523462527be1dd5f53c6ac90b199820
Add account notes.

src/nickserv.h (struct handle_note): New structure.
  (struct handle_info): Add field to point to account's notes.

src/nickserv.c (KEY_NOTE*): New configuration key macros.
  (WALK_NOTES): New macro to make a single pass through notes while
    deleting ones that have expired.
  (msgtab): Add entries to support commands related to account notes.
  (free_handle_info): Release notes on an account.
  (cmd_handleinfo): Show notes, or say there are none.
  (cmd_addnote): New command-handler function.
  (cmd_delnote): New command-handler function.
  (nickserv_saxdb_write): Write notes to the database.
  (nickserv_db_read_handle): Read notes from the database.
  (init_nickserv): Register new functions.

src/nickserv.help (ADDNOTE): Document new command.
  (DELNOTE): Likewise.
src/nickserv.c
src/nickserv.h
src/nickserv.help