[SithNet--Patches] gnuworld/include server.h,1.1.1.2,1.2 Channel.h,1.1.1.2,1.2 client.h,1.1.1.2,1.2
Brought to you by:
darthsidious_
From: <dar...@us...> - 2003-06-30 20:21:09
|
Update of /cvsroot/sithnet-dev/gnuworld/include In directory sc8-pr-cvs1:/tmp/cvs-serv32423 Modified Files: server.h Channel.h client.h Log Message: clearmode updates Index: server.h =================================================================== RCS file: /cvsroot/sithnet-dev/gnuworld/include/server.h,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -C2 -d -r1.1.1.2 -r1.2 *** server.h 28 Jun 2003 23:12:14 -0000 1.1.1.2 --- server.h 30 Jun 2003 20:21:06 -0000 1.2 *************** *** 892,895 **** --- 892,935 ---- /** + * This method is called when a channel mode 'c' change is + * detected. + * Keep in mind that the source ChannelUser may be NULL + * if the mode is being set/unset by a server. + */ + virtual void OnChannelModeC( Channel*, bool, ChannelUser* ) ; + + /** + * This method is called when a channel mode 'C' change is + * detected. + * Keep in mind that the source ChannelUser may be NULL + * if the mode is being set/unset by a server. + */ + virtual void OnChannelModec( Channel*, bool, ChannelUser* ) ; + + /** + * This method is called when a channel mode 'D' change is + * detected. + * Keep in mind that the source ChannelUser may be NULL + * if the mode is being set/unset by a server. + */ + virtual void OnChannelModed( Channel*, bool, ChannelUser* ) ; + + /** + * This method is called when a channel mode 'u' change is + * detected. + * Keep in mind that the source ChannelUser may be NULL + * if the mode is being set/unset by a server. + */ + virtual void OnChannelModeU( Channel*, bool, ChannelUser* ) ; + + /** + * This method is called when a channel mode 'O' change is + * detected. + * Keep in mind that the source ChannelUser may be NULL + * if the mode is being set/unset by a server. + */ + virtual void OnChannelModeo( Channel*, bool, ChannelUser* ) ; + + /** * This method is called when a channel mode 'l' change is * detected. Index: Channel.h =================================================================== RCS file: /cvsroot/sithnet-dev/gnuworld/include/Channel.h,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -C2 -d -r1.1.1.2 -r1.2 *** Channel.h 28 Jun 2003 23:12:09 -0000 1.1.1.2 --- Channel.h 30 Jun 2003 20:21:06 -0000 1.2 *************** *** 108,111 **** --- 108,126 ---- static const modeType MODE_R ; + /// Bit representing channel mode +c + static const modeType MODE_C ; + + /// Bit representing channel mode +C + static const modeType MODE_c ; + + /// Bit representing channel mode +D + static const modeType MODE_d ; + + /// Bit representing channel mode +u + static const modeType MODE_U ; + + /// Bit representing channel mode +O + static const modeType MODE_o ; + /// Type used to store number of clients in channel typedef userListType::size_type size_type ; *************** *** 489,492 **** --- 504,538 ---- virtual void onModeK( bool, const string& ) ; + + /** + * This method is called when channel mode 'c' is set + * or unset. + */ + virtual void onModeC( bool ) ; + + /** + * This method is called when channel mode 'C' is set + * or unset. + */ + virtual void onModec( bool ) ; + + /** + * This method is called when channel mode 'D' is set + * or unset. + */ + virtual void onModed( bool ) ; + + /** + * This method is called when channel mode 'u' is set + * or unset. + */ + virtual void onModeU( bool ) ; + + /** + * This method is called when channel mode 'O' is set + * or unset. + */ + virtual void onModeo( bool ) ; + /** * This method is called when one or more channel Index: client.h =================================================================== RCS file: /cvsroot/sithnet-dev/gnuworld/include/client.h,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -C2 -d -r1.1.1.2 -r1.2 *** client.h 28 Jun 2003 23:12:10 -0000 1.1.1.2 --- client.h 30 Jun 2003 20:21:06 -0000 1.2 *************** *** 308,311 **** --- 308,350 ---- ChannelUser*, const string& ) ; + virtual void OnChannelModeC( Channel*, bool polarity, + ChannelUser* ) ; + /** + * This method is invoked when a user sets or removes + * channel mode C (noctcp). Keep in mind that the + * source ChannelUser may be NULL if a server is + * setting the mode. + */ + virtual void OnChannelModec( Channel*, bool polarity, + ChannelUser* ) ; + + /** + * This method is invoked when a user sets or removes + * channel mode D (delayed joins). Keep in mind that the + * source ChannelUser may be NULL if a server is + * setting the mode. + */ + virtual void OnChannelModed( Channel*, bool polarity, + ChannelUser* ) ; + + /** + * This method is invoked when a user sets or removes + * channel mode u (noquitparts). Keep in mind that the + * source ChannelUser may be NULL if a server is + * setting the mode. + */ + virtual void OnChannelModeU( Channel*, bool polarity, + ChannelUser* ) ; + + /** + * This method is invoked when a user sets or removes + * channel mode O (operonly). Keep in mind that the + * source ChannelUser may be NULL if a server is + * setting the mode. + */ + virtual void OnChannelModeo( Channel*, bool polarity, + ChannelUser* ) ; + + /** * This method is invoked when a user sets or removes |