]>
jfr.im git - irc/quakenet/newserv.git/blob - localuser/localuserchannel.h
1 #ifndef __LOCALUSERCHANNEL_H
2 #define __LOCALUSERCHANNEL_H
5 #include "../channel/channel.h"
6 #include "../irc/irc_config.h"
9 #define MC_VOICE 0x0002
10 #define MC_DEOP 0x0004
11 #define MC_DEVOICE 0x0008
13 #define MCB_ADD 0x0001
14 #define MCB_DEL 0x0002
16 typedef struct modechanges
{
28 } changes
[MAXMODEARGS
];
31 /* These functions are in localuserchannel.c */
32 int localjoinchannel(nick
*np
, channel
*cp
);
33 int localpartchannel(nick
*np
, channel
*cp
);
34 int localcreatechannel(nick
*np
, char *channame
);
35 int localgetops(nick
*np
, channel
*cp
);
36 int localgetvoice(nick
*np
, channel
*cp
);
37 int localsetmodes(nick
*np
, channel
*cp
, nick
*target
, short modes
);
38 void localsettopic(nick
*np
, channel
*cp
, char *topic
);
39 void localkickuser(nick
*np
, channel
*cp
, nick
*target
, const char *message
);
40 void localusermodechange(nick
*np
, channel
*cp
, char *modes
);
41 void sendmessagetochannel(nick
*source
, channel
*cp
, char *format
, ... );
42 void localinvite(nick
*source
, channel
*cp
, nick
*target
);
44 void localsetmodeinit (modechanges
*changes
, channel
*cp
, nick
*np
);
45 void localdosetmode_nick (modechanges
*changes
, nick
*target
, short modes
);
46 void localdosetmode_ban (modechanges
*changes
, const char *ban
, short dir
);
47 void localdosetmode_key (modechanges
*changes
, const char *key
, short dir
);
48 void localdosetmode_limit (modechanges
*changes
, unsigned int limit
, short dir
);
49 void localdosetmode_simple (modechanges
*changes
, flag_t addmodes
, flag_t delmodes
);
50 void localsetmodeflush (modechanges
*changes
, int force
);