AW EVENT BOTMENU

From ActiveWiki
Revision as of 11:07, 2 November 2008 by Macavity (talk | contribs) (sort key)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 4.1
SDKbuild 53


AW_EVENT_BOTMENU

Description

Botmenu item was selected by a user.

Attributes

AW_BOTMENU_FROM_NAME
Name of the user that selected a botmenu item.
AW_BOTMENU_FROM_SESSION
Session of the user that selected a botmenu item.
AW_BOTMENU_QUESTION
Line number (in botmenu file) of the selected menu item.
AW_BOTMENU_ANSWER
Not used by browsers.

Usage

void handle_botmenu (void)
{
  printf ("User %s (sess# %d) selected botmenu item %s\n",
          aw_string (AW_BOTMENU_FROM_NAME),
          aw_int (AW_BOTMENU_FROM_SESSION),
          aw_string (AW_BOTMENU_QUESTION));
}

aw_event_set (AW_EVENT_BOTMENU, handle_botmenu);

Triggered by