|
|||
|
|||
|
Inheritance diagram for BlockCaps:


Public Member Functions | |
| BlockCaps (InspIRCd *Instance) | |
| ModeAction | OnModeChange (userrec *source, userrec *dest, chanrec *channel, std::string ¶meter, bool adding) |
| Called when a mode change for your mode occurs. | |
Definition at line 25 of file m_blockcaps.cpp.
|
|
Definition at line 28 of file m_blockcaps.cpp. 00028 : ModeHandler(Instance, 'P', 0, 0, false, MODETYPE_CHANNEL, false) { }
|
|
||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 30 of file m_blockcaps.cpp. References chanrec::IsModeSet(), MODEACTION_ALLOW, MODEACTION_DENY, and chanrec::SetMode(). 00031 { 00032 if (adding) 00033 { 00034 if (!channel->IsModeSet('P')) 00035 { 00036 channel->SetMode('P',true); 00037 return MODEACTION_ALLOW; 00038 } 00039 } 00040 else 00041 { 00042 if (channel->IsModeSet('P')) 00043 { 00044 channel->SetMode('P',false); 00045 return MODEACTION_ALLOW; 00046 } 00047 } 00048 00049 return MODEACTION_DENY; 00050 }
|