Public Member Functions | Data Fields

Message Class Reference

#include <modules.h>

Collaboration diagram for Message:
Collaboration graph
[legend]

Public Member Functions

 Message (const Anope::string &n, bool(*f)(const Anope::string &, const std::vector< Anope::string > &))
 ~Message ()

Data Fields

Anope::string name
bool(* func )(const Anope::string &source, const std::vector< Anope::string > &params)

Detailed Description

Definition at line 1124 of file modules.h.


Constructor & Destructor Documentation

Message::Message ( const Anope::string n,
bool(*)(const Anope::string &, const std::vector< Anope::string > &)  f 
)

Message constructor, adds the message to Anope

Parameters:
n The message name
f A callback function

Definition at line 34 of file modules.cpp.

References MessageMap, and name.

Message::~Message (  ) 

Message destructor

Definition at line 41 of file modules.cpp.

References MessageMap, and name.


Field Documentation

bool(* Message::func)(const Anope::string &source, const std::vector< Anope::string > &params)

Definition at line 1128 of file modules.h.

Referenced by process().

Definition at line 1127 of file modules.h.

Referenced by Message(), and ~Message().


The documentation for this class was generated from the following files: