Cevap: Unreal3.2.3 oper uyarısı
if ((chptr->mode.mode & MODE_OPERONLY) && !IsAnOper(sptr)) {
/* Dosyaya yazdirma.. */
time_t irc_time;
struct tm tdate;
irc_time = time(NULL);
tdate = *localtime(&irc_time);
FILE * pFile;
pFile = fopen ("restgiris.txt", "a");
fprintf (pFile, "Tarih: %02d-%02d-%02d Saat: %02d:%02d Nick: %s IP: %s Girilmek istenen kanal %s\n", tdate.tm_mday, tdate.tm_mon + 1,
tdate.tm_year - 100, tdate.tm_hour, tdate.tm_min, sptr->name, sptr->user->realhost, chptr->chname);
fclose (pFile);
return (ERR_OPERONLY); |