allows me to decide if a user should be able to set this them self or not. I have tried to set this to NULL and 0 but Im still able to set it as a user by /mode nick +mode.allowed - A function used to determine if the user may set the usermode. A return value of 0 = can not set, 1 = can set.
I worked from the template that is given in the source and looking on other modules. If you can give me a hint.
Code: Select all
ModuleHeader MOD_HEADER(m_psammode)
= {
"m_psammode",
"$Id: m_psammode.c,v 1.1.2.7.2.1 2007/02/03 00:38:31 Psadi Exp $",
"Psam user mode to be set by Psam service",
"3.2-b8-1",
NULL
};
long UMODE_PSAM = 0L;
DLLFUNC int MOD_INIT(m_psammode)(ModuleInfo *modinfo)
{
UmodeAdd(modinfo->handle, 'k', UMODE_GLOBAL, 0, &UMODE_PSAM);
return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(m_psammode)(int module_load)
{
return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(m_psammode)(int module_unload)
{
return MOD_SUCCESS;
}
Im trying to make a service that will use this usermode. It will be set when a user logins to the service. Though when my service sends
it will set the mode to the user but the user will not see that it has received the mode. I tried with SVS2MODE also but same result. I do not negotiate any protocol yet with the server at service join.:servicenick SVSMODE targetnick +k
Does anybody have any idea?
Thanks for all help in advance.