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