process.c File Reference

#include "services.h"
#include "messages.h"
#include "modules.h"

Include dependency graph for process.c:

Go to the source code of this file.

Functions

void add_ignore (const char *nick, time_t delta)
IgnoreDataget_ignore (const char *nick)
int delete_ignore (const char *nick)
int clear_ignores ()
int split_buf (char *buf, char ***argv, int colon_special)
void process ()

Variables

int allow_ignore = 1
IgnoreDataignore


Function Documentation

void add_ignore ( const char *  nick,
time_t  delta 
)

Add a mask/nick to the ignorelits for delta seconds.

Parameters:
nick Nick or (nick!)user to add to the ignorelist.
delta Seconds untill new entry is set to expire.

Definition at line 34 of file process.c.

References alog(), BUFSIZE, debug, ignore_data::mask, ignore_data::next, ignore_data::prev, scalloc(), snprintf(), sstrdup(), stricmp(), and ignore_data::time.

Referenced by do_ignoreuser(), and m_privmsg().

int clear_ignores (  ) 

Clear the ignorelist.

Returns:
The number of entries deleted.

Definition at line 318 of file process.c.

References alog(), debug, ignore_data::mask, and ignore_data::next.

Referenced by do_ignoreuser().

int delete_ignore ( const char *  nick  ) 

Deletes a given nick/mask from the ignorelist.

Parameters:
nick Nick or (nick!)user to delete from the ignorelist.
Returns:
Returns 1 on success, 0 if no entry is found.

Definition at line 226 of file process.c.

References alog(), BUFSIZE, debug, ignore_data::mask, ignore_data::next, ignore_data::prev, snprintf(), and stricmp().

Referenced by do_ignoreuser().

IgnoreData* get_ignore ( const char *  nick  ) 

Retrieve an ignorance record for a nick or mask. If the nick isn't being ignored, we return NULL and if necesary flush the record from the in-core list (i.e. ignore timed out).

Parameters:
nick Nick or (nick!)user to look for on the ignorelist.
Returns:
Pointer to the ignore record, NULL if none was found.

Definition at line 118 of file process.c.

References allow_ignore, alog(), BUFSIZE, debug, finduser(), is_oper(), ignore_data::mask, match_usermask(), match_wild_nocase(), ignore_data::next, ignore_data::prev, snprintf(), and ignore_data::time.

Referenced by botchanmsgs(), chan_adduser2(), chan_set_correct_modes(), m_privmsg(), and memo_send().

void process ( void   ) 

int split_buf ( char *  buf,
char ***  argv,
int  colon_special 
)

Definition at line 365 of file process.c.

References scalloc(), and srealloc().

Referenced by do_mass_mode(), do_os_mode(), event_message_process(), and process().


Variable Documentation

int allow_ignore = 1

Definition at line 22 of file process.c.

Definition at line 25 of file process.c.


Generated on Sun Oct 5 09:07:08 2008 for Anope by  doxygen 1.5.7.1