Kod: Kodu kopyalamak için üzerine çift tıklayın!
#include "config.h"
#include "struct.h"
#include "common.h"
#include "sys.h"
#include "numeric.h"
#include "msg.h"
#include "channel.h"
#include <time.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <io.h>
#endif
#include <fcntl.h>
#include "h.h"
#include "proto.h"
#ifdef STRIPBADWORDS
#include "badwords.h"
#endif
#ifdef _WIN32
#include "version.h"
#endif
DLLFUNC int m_connectfullname(aClient *sptr);
ModuleHeader MOD_HEADER(m_webidentd)
= {
"m_connectfullname",
"connect fullname",
"irc testing",
"3.2-b8-1",
NULL
};
DLLFUNC int MOD_INIT(m_connectfullname)(ModuleInfo *modinfo)
{
HookAddEx(modinfo->handle, HOOKTYPE_LOCAL_CONNECT, m_connectfullname);
return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(m_connectfullname)(int module_load)
{
return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(m_connectfullname)(int module_unload)
{
return MOD_SUCCESS;
}
DLLFUNC int m_connectfullname(aClient *sptr)
{
if (!stricmp(sptr->info,"12test")) {
strcpy(sptr->info,"12testing.");
}
}
bu sekilde denermisin.