int hooktype_chan_permit_nick_change(aClient *sptr, aChannel *chptr);
int hooktype_is_channel_secure(aChannel *chptr);
int hooktype_can_send_secure(aClient *sptr, aChannel *chptr);
-void hooktype_channel_synced(aChannel *chptr, unsigned short merge, unsigned short removetheirs, unsigned short nomode);
+void hooktype_channel_synced(aChannel *chptr, int merge, int removetheirs, int nomode);
int hooktype_can_sajoin(aClient *target, aChannel *chptr, aClient *sptr);
int hooktype_whois(aClient *sptr, aClient *target);
int hooktype_check_init(aClient *cptr, char *sockname, size_t size);
#define IsSecureOnly(chptr) (chptr->mode.extmode & EXTCMODE_SSLONLY)
-int secureonly_check_join (aClient *sptr, aChannel *chptr, char *key, char *parv[]);
-void secureonly_channel_sync (aChannel* chptr, unsigned short merge, unsigned short removetheirs, unsigned short nomode);
-int secureonly_check_send (aClient *acptr, aChannel* chptr);
-int secureonly_check_secure (aChannel* chptr);
-int secureonly_check_sajoin (aClient *acptr, aChannel* chptr, aClient *sptr);
+int secureonly_check_join(aClient *sptr, aChannel *chptr, char *key, char *parv[]);
+void secureonly_channel_sync (aChannel* chptr, int merge, int removetheirs, int nomode);
+int secureonly_check_send(aClient *acptr, aChannel* chptr);
+int secureonly_check_secure(aChannel* chptr);
+int secureonly_check_sajoin(aClient *acptr, aChannel* chptr, aClient *sptr);
int secureonly_specialcheck(aClient *sptr, aChannel *chptr, char *parv[]);
MOD_TEST(sslonly)
}
}
-int secureonly_check_join (aClient *sptr, aChannel *chptr, char *key, char *parv[])
+int secureonly_check_join(aClient *sptr, aChannel *chptr, char *key, char *parv[])
{
Link *lp;
return 0;
}
-int secureonly_check_secure (aChannel* chptr)
+int secureonly_check_secure(aChannel *chptr)
{
if (IsSecureOnly(chptr))
{
return 0;
}
-void secureonly_channel_sync (aChannel* chptr, unsigned short merge, unsigned short removetheirs, unsigned short nomode)
+void secureonly_channel_sync(aChannel *chptr, int merge, int removetheirs, int nomode)
{
if ((!merge && !removetheirs && !nomode) || (merge && !nomode))
{
}
}
-int secureonly_check_send (aClient *acptr, aChannel* chptr)
+int secureonly_check_send(aClient *acptr, aChannel *chptr)
{
if (IsSecureOnly(chptr))
if (!IsSecure(acptr))
return HOOK_CONTINUE;
}
-int secureonly_check_sajoin (aClient *acptr, aChannel* chptr, aClient *sptr)
+int secureonly_check_sajoin(aClient *acptr, aChannel *chptr, aClient *sptr)
{
if (IsSecureOnly(chptr) && !IsSecure(acptr))
{