00001 #ifndef __MESSAGE_H 00002 #define __MESSAGE_H 00003 00004 // include the common header files 00005 00006 #include <typeinfo> 00007 #include <iostream> 00008 #include <string> 00009 #include <deque> 00010 #include <sstream> 00011 #include <vector> 00012 #include "users.h" 00013 #include "channels.h" 00014 00015 int common_channels(userrec *u, userrec *u2); 00016 void chop(char* str); 00017 void tidystring(char* str); 00018 void safedelete(chanrec *p); 00019 void safedelete(userrec *p); 00020 void Blocking(int s); 00021 void NonBlocking(int s); 00022 int CleanAndResolve (char *resolvedHost, const char *unresolvedHost); 00023 int c_count(userrec* u); 00024 bool hasumode(userrec* user, char mode); 00025 void ChangeName(userrec* user, const char* gecos); 00026 void ChangeDisplayedHost(userrec* user, const char* host); 00027 int isident(const char* n); 00028 int isnick(const char* n); 00029 char* cmode(userrec *user, chanrec *chan); 00030 int cstatus(userrec *user, chanrec *chan); 00031 int has_channel(userrec *u, chanrec *c); 00032 void TidyBan(char *ban); 00033 char* chlist(userrec *user); 00034 void send_network_quit(const char* nick, const char* reason); 00035 00036 #endif