IRCBot Plugin API  v5
Public Attributes | List of all members
REQUEST_INTERFACE Struct Reference

#include <plugins.h>

Public Attributes

void(* find )(const char *fn, int max_results, int start, USER_PRESENCE *ut, find_finish_type find_finish)
 Sent to the source plugin when someone does an @find. More...
 
bool(* request_from_find )(USER_PRESENCE *pres, FIND_RESULT *res, char *reply, size_t replySize)
 Called when someone does a !request with a # that matches a @find result. More...
 
bool(* request )(USER_PRESENCE *pres, const char *txt, char *reply, size_t replySize)
 Called when a !request is done with a filename or # after results have expired. More...
 

Detailed Description

This structure contains contains the result of a @find. The bot keeps track of the last @find result so people can use !request # and not the full filename.

See also
BOTAPI::RequestsOnHooked
FIND_RESULTS
FIND_RESULT

Member Data Documentation

void(* REQUEST_INTERFACE::find)(const char *fn, int max_results, int start, USER_PRESENCE *ut, find_finish_type find_finish)

Sent to the source plugin when someone does an @find.

bool(* REQUEST_INTERFACE::request_from_find)(USER_PRESENCE *pres, FIND_RESULT *res, char *reply, size_t replySize)

Called when someone does a !request with a # that matches a @find result.

bool(* REQUEST_INTERFACE::request)(USER_PRESENCE *pres, const char *txt, char *reply, size_t replySize)

Called when a !request is done with a filename or # after results have expired.


The documentation for this struct was generated from the following file: