IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Hazır_kodlar (https://www.ircforumlari.net/hazir_kodlar/)
-   -   Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi. (https://www.ircforumlari.net/hazir_kodlar/306097-unreal32-m_quitc-cikis-mesaji-toplam-baglanti-suresi.html)

SaLTaNaT 17 Aralık 2009 11:40

Unreal3.2.3 m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
m_quit.c

Kod;
Kod:

/*
 *  Unreal Internet Relay Chat Daemon, src/modules/m_quit.c
 *  (C) 2000-2001 Carsten V. Munk and the UnrealIRCd Team
 *  Moved to modules by Fish (Justin Hammond)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 1, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
#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_quit(aClient *cptr, aClient *sptr, int parc, char *parv[]);
/* Place includes here */
#define MSG_QUIT        "QUIT"  /* QUIT */
#define TOK_QUIT        ","    /* 44 */
ModuleHeader MOD_HEADER(m_quit)
  = {
 "quit", /* Name of module */
 "$Id: m_quit.c,v 1.1.6.6 2005/03/13 21:03:15 syzop Exp $", /* Version */
 "command /quit", /* Short description of module */
 "3.2-b8-1",
 NULL
    };
/* This is called on module init, before Server Ready */
DLLFUNC int MOD_INIT(m_quit)(ModuleInfo *modinfo)
{
 /*
  * We call our add_Command crap here
 */
 add_CommandX(MSG_QUIT, TOK_QUIT, m_quit, 1, M_UNREGISTERED|M_USER|M_VIRUS);
 MARK_AS_OFFICIAL_MODULE(modinfo);
 return MOD_SUCCESS;
}
/* Is first run when server is 100% ready */
DLLFUNC int MOD_LOAD(m_quit)(int module_load)
{
 return MOD_SUCCESS;
}
/* Called when module is unloaded */
DLLFUNC int MOD_UNLOAD(m_quit)(int module_unload)
{
 if (del_Command(MSG_QUIT, TOK_QUIT, m_quit) < 0)
 {
  sendto_realops("Failed to delete commands when unloading %s",
    MOD_HEADER(m_quit).name);
 }
 return MOD_SUCCESS;
}
/*
** m_quit
** parv[0] = sender prefix
** parv[1] = comment
*/
char saat[1024];
DLLFUNC int  m_quit(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
 char *ocomment = (parc > 1 && parv[1]) ? parv[1] : parv[0];
 static char comment[TOPICLEN + 1];
 Membership *lp;
 if (!IsServer(cptr) && IsPerson(sptr))
 {
#ifdef STRIPBADWORDS
  int blocked = 0;
#endif
  int n;
  char *s = comment;
  Hook *tmphook;
            if (STATIC_QUIT)
            if ((TStime() - sptr->firsttime) > 86400)
                ircsprintf(saat, "%s - Bağlantı süresi: %d gün %d sa %d dk %d sn", STATIC_QUIT, ((TStime() - sptr->firsttime) / 86400), (((TStime() - sptr->firsttime) % 86400) / 3600), ((((TStime() - sptr->firsttime) % 86400) % 3600) / 60), (((((TStime() - sptr->firsttime) % 86400) % 3600) % 60) % 60));
            else if ((TStime() - sptr->firsttime) > 3600)
                ircsprintf(saat, "%s - Bağlantı süresi: %d sa %d dk %d sn", STATIC_QUIT, (((TStime() - sptr->firsttime) / 3600)), (((TStime() - sptr->firsttime) % 3600) / 60), ((((TStime() - sptr->firsttime) % 3600) % 60) % 60));
            else if ((TStime() - sptr->firsttime) > 60)
                ircsprintf(saat, "%s - Bağlantı süresi: %d dk %d sn", STATIC_QUIT, ((TStime() - sptr->firsttime) / 60), ((TStime() - sptr->firsttime) % 60));
            else
                ircsprintf(saat, "%s", STATIC_QUIT);
            return exit_client(cptr, sptr, sptr, saat);
  if (IsVirus(sptr))
  return exit_client(cptr, sptr, sptr, "Client exited");
  if (!prefix_quit || strcmp(prefix_quit, "no"))
  s = ircsprintf(comment, "%s ",
        BadPtr(prefix_quit) ? "Quit:" : prefix_quit);
#ifdef STRIPBADWORDS
  ocomment = (char *)stripbadwords_quit(ocomment, &blocked);
  if (blocked)
  ocomment = parv[0];
#endif
  n = dospamfilter(sptr, ocomment, SPAMF_QUIT, NULL);
  if (n == FLUSH_BUFFER)
  return n;
  if (n < 0)
  ocomment = parv[0];
 
  if (!IsAnOper(sptr) && ANTI_SPAM_QUIT_MSG_TIME)
  if (sptr->firsttime+ANTI_SPAM_QUIT_MSG_TIME > TStime())
    ocomment = parv[0];
  /* Strip color codes if any channel is +S, use nick as reason if +c. */
  if (IsPerson(sptr) && (strchr(ocomment, '\003')))
  {
  unsigned char filtertype = 0; /* 1=filter, 2=block, highest wins. */
  for (lp = sptr->user->channel; lp; lp = lp->next)
  {
    if (lp->chptr->mode.mode & MODE_NOCOLOR)
    {
    filtertype = 2;
    break;
    }
    if (lp->chptr->mode.mode & MODE_STRIP)
    {
    if (!filtertype)
      filtertype = 1;
    }
  }
  if (filtertype == 1)
  {
    ocomment = StripColors(ocomment);
    if (*ocomment == '\0')
    ocomment = parv[0];
  } else
  if (filtertype == 2)
    ocomment = parv[0];
  } /* (strip color codes) */
                for (tmphook = Hooks[HOOKTYPE_PRE_LOCAL_QUIT]; tmphook; tmphook = tmphook->next)
  {
                ocomment = (*(tmphook->func.pcharfunc))(sptr, ocomment);
                        if (!ocomment)
  { 
    ocomment = parv[0];
                                break;
                        }
                }
  strncpy(s, ocomment, TOPICLEN - (s - comment));
  comment[TOPICLEN] = '\0';
  return exit_client(cptr, sptr, sptr, comment);
 }
 else
 {
  return exit_client(cptr, sptr, sptr, ocomment);
 }
}


Sky-Dancer 17 Aralık 2009 18:52

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Denediniz mi bu kodu? hata vermediyse veya uyarı vermediyse garip bir olay :)
çünkü şöyle bir sorun var,
char *saat[1024];
bu tanımı "BU KOD İÇİN" yaparsan hatalı bir işlem olur.
Bunun yerine,
char saat[1024];
bunu yaparsan sorun çıkartmayacaktır..

iyi Çalışmalar..

SaLTaNaT 17 Aralık 2009 18:53

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Kendim kullanıyorum aktif calısıyor , o yüzden paylastım hata vermedi ama doğrudur olabilir :)

Kullanıcak arakadaslar siz ; Sky-Dancer ın dedigi gibi

Kod;
Kod:

char saat[1024];
olarak kullanırsınız hata verir ise.

Sky-Dancer 17 Aralık 2009 19:15

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Alıntı:

SaLTaNaT Nickli Üyeden Alıntı (Mesaj 881569)
Kendim kullanıyorum aktif calısıyor , o yüzden paylastım hata vermedi ama doğrudur olabilir :)

Kullanıcak arakadaslar siz ; Sky-Dancer ın dedigi gibi

Kod;
Kod:

char saat[1024];
olarak kullanırsınız hata verir ise.

şimdi aslında senin char *saat[1024];
ile yaptığın şey, 1024 lük char dizisi halinde pointer (bir çeşit array) tanımlamak.. Yani 1024 x ... lık bir karakterler grubu oluşturmak..
hiç derlerken warning vermiyor mu ?

Sky-Dancer 17 Aralık 2009 19:24

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Demeye çalıştığım şu; Sizde hata vermemiş olabilir. ama 64 bit bir işletim sisteminde veya Windows da derlendiğinde %90 hata verecektir. Çünkü;
Kod:

m_quit.c:102: warning: passing argument 1 of âircsprintfâ from incompatible pointer type
m_quit.c:104: warning: passing argument 1 of âircsprintfâ from incompatible pointer type
m_quit.c:106: warning: passing argument 1 of âircsprintfâ from incompatible pointer type
m_quit.c:108: warning: passing argument 1 of âircsprintfâ from incompatible pointer type
m_quit.c:109: warning: passing argument 4 of âexit_clientâ from incompatible pointer type

Kısa özet : birbirine uyumsuz tipleri kullanmışsın (char *[] -> char*)

iyi Çalışmalar..

SaLTaNaT 17 Aralık 2009 20:18

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Haklısın :)

Buzsohbet 03 Şubat 2010 01:47

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Ayrıntılı bir sekilde anlatabilecek arkadaslar varsa sevinirim.

SaygıLar

Cihandar 03 Şubat 2010 02:47

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
1. Yukardaki Kodu Kopyala Text'in içine at "Farklı kaydet" sonra isim verirken "m_quit.c" olarak kaydet.
2. Ftp'ye gir "Unreal3.2/src/modules" 'e at
3. Telnete gir "cd Unreal3.2"
4. "make custommodule MODULEFILE=m_quit" yaz
5. "unrealircd.conf" 'u aç
6. loadmodule "src/modules/m_quit.so";
7. "unrealircd.conf" u at "./unreal rehash" "./unreal restart" yap.

Hatırladıgım kadaryla modül kurulumu..

toXic 03 Şubat 2010 18:21

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Sadece static quit lerde cikiyor client exit icin eklemek icinde

if (IsVirus(sptr))
return exit_client(cptr, sptr, sptr, "Client exited");

altina ekleyebilirsiniz

SaW 03 Şubat 2010 19:21

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Bu kodu ben yazmıştım. Öncesinde c ve c++ dilleriyle çok fazla iştigalim olmadığından böyle ufak tefek sorunların çıkması normaldir de paylaşan arkadaşın sanki kendisi yazmış gibi paylaşması tuhaf geldi. Yanlış anlaşılmasın çok çok önemli bir kod ya da çok çok uğraş verilerek hazırlanmış birşey değil, niyetim görgüsüzlük yapmak da değil ama yine de insan biraz saygı bekliyor..

SaLTaNaT 04 Şubat 2010 16:08

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Yanlıs anlasılmasın , kodu ben yazdım demedim zaten. kodun yazarınıda bilmiyorum ben sadece net üzerinde paylasımını gördüm ama kodun yazarını bilmiyorum ben ekledim kimse ugrasmasın diye , ekledim paylastım o kadar. doğrudur sen yazdım diyosan yazmıssındır ben kodları modül'e yerlestirdim hazır olarak paylastım o kadar. Emeğe saygı her zaman sonsuzdur. ;)

Iyi forumlar.

Serseri 08 Ocak 2011 23:29

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Alıntı:

toXic Nickli Üyeden Alıntı (Mesaj 1040314232)
Sadece static quit lerde cikiyor client exit icin eklemek icinde

if (IsVirus(sptr))
return exit_client(cptr, sptr, sptr, "Client exited");

altina ekleyebilirsiniz

Ne ekleyebiliriz birde onu söylesen toXic çok güzel olacak:)

ecoll 22 Ocak 2011 19:37

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Alıntı:

-o m_quit.so m_quit.c
m_quit.c: In function âm_quitâ:
m_quit.c:120: error: too few arguments to function âdospamfilterâ
m_quit.c:172:2: warning: no newline at end of file
make[2]: *** [custommodule] Error 1
make[2]: Leaving directory `/home/xxx/Unreal3.2/src/modules'
make[1]: *** [custommodule] Error 2
make[1]: Leaving directory `/home/xxx/Unreal3.2/src'
make: *** [custommodule] Error 2

Böyle Bir Hata Verior
Sorunu Hallettim

Kod:

#endif
  n = dospamfilter(sptr, ocomment, SPAMF_QUIT, NULL, 0, NULL);
  if (n == FLUSH_BUFFER)
  return n;
  if (n < 0)
  ocomment = parv[0];
 
  if (!IsAnOper(sptr) && ANTI_SPAM_QUIT_MSG_TIME)
  if (sptr->firsttime+ANTI_SPAM_QUIT_MSG_TIME > TStime())
    ocomment = parv[0];


Orjinal Kodu iLe Deiştirdim oLdu...

dEathLeSs 15 Nisan 2011 17:12

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Modulu kurdu cok güzel çalışıyor, fakat çoklu çıkış mesajı ekleyince şöyle bir hata alıyorum düzeltemedim..

m_quit.c: In function âm_quitâ:
m_quit.c:114: error: expected expression before â}â token
m_quit.c:117: error: âcmesajlistesiâ undeclared (first use in this function)
m_quit.c:117: error: (Each undeclared identifier is reported only once
m_quit.c:117: error: for each function it appears in.)
m_quit.c:132: error: âsâ undeclared (first use in this function)
m_quit.c:135: error: âblockedâ undeclared (first use in this function)
m_quit.c:139: error: ânâ undeclared (first use in this function)
m_quit.c:174: error: âtmphookâ undeclared (first use in this function)
m_quit.c: At top level:
m_quit.c:187: error: expected identifier or â(â before âelseâ
m_quit.c:191: error: expected identifier or â(â before â}â token
m_quit.c:191:2: warning: no newline at end of file
make[2]: *** [m_quit.o] Error 1
make[2]: Leaving directory `/home/askk/Unreal3.2/src/modules'
make[1]: *** [mods] Error 2
make[1]: Leaving directory `/home/askk/Unreal3.2/src'
make: *** [build] Error 2


fLayer 15 Kasım 2011 13:46

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Kod:

m_quit.c:116: warning: cast from pointer to integer of different size
m_quit.c:120: warning: passing argument 2 of âdospamfilterâ makes pointer from integer without a cast
m_quit.c:130: warning: passing argument 1 of â__rawmemchrâ makes pointer from integer without a cast
m_quit.c:130: warning: passing argument 1 of â__builtin_strchrâ makes pointer from integer without a cast
m_quit.c:148: warning: passing argument 1 of âStripColorsâ makes pointer from integer without a cast
m_quit.c:148: warning: assignment makes integer from pointer without a cast
m_quit.c:149: error: invalid type argument of âunary *â
m_quit.c:157: warning: assignment makes integer from pointer without a cast
m_quit.c:164: error: invalid operands to binary -
m_quit.c:164: warning: passing argument 1 of â__builtin_strncpyâ makes pointer from integer without a cast
m_quit.c:164: warning: passing argument 2 of â__builtin_strncpyâ makes pointer from integer without a cast
m_quit.c:170: warning: passing argument 4 of âexit_clientâ makes pointer from integer without a cast
m_quit.c:172:2: warning: no newline at end of file
make[2]: *** [m_quit.o] Error 1
make[2]: Leaving directory `/home/melek/Unreal3.2/src/modules'
make[1]: *** [mods] Error 2
make[1]: Leaving directory `/home/melek/Unreal3.2/src'
make: *** [build] Error 2
melek@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...].gen.tr [~/Unreal3.2]# make
Building src
make[1]: Entering directory `/home/melek/Unreal3.2/src'
cd modules; make 'CFLAGS=-I../include -I/home/melek/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -export-dynamic  ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl  -ldl -L/home/melek/Unreal3.2/extras/regexp/lib -ltre  ' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/home/melek/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/home/melek/Unreal3.2' 'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=' 'CRYPTOINCLUDES=' 'URL='  all
make[2]: Entering directory `/home/melek/Unreal3.2/src/modules'
gcc -I../include -I/home/melek/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -export-dynamic  -fPIC -DPIC -shared  -c m_quit.c
m_quit.c:25:20: error: stdinc.h: No such file or directory
m_quit.c:26:22: error: handlers.h: No such file or directory
m_quit.c:27:20: error: client.h: No such file or directory
m_quit.c:28:18: error: ircd.h: No such file or directory
m_quit.c:29:24: error: irc_string.h: No such file or directory
m_quit.c:30:20: error: s_serv.h: No such file or directory
m_quit.c:31:18: error: send.h: No such file or directory
m_quit.c:33:19: error: parse.h: No such file or directory
In file included from m_quit.c:34:
../include/modules.h:111: error: expected â)â before â*â token
../include/modules.h:112: error: expected â;â before âcharâ
../include/modules.h:119: error: expected â)â before â*â token
../include/modules.h:120: error: expected â;â before âcharâ
../include/modules.h:267: error: expected â)â before â*â token
../include/modules.h:276: error: expected â;â before âcharâ
../include/modules.h:291: error: expected â)â before â*â token
../include/modules.h:292: error: expected â;â before âcharâ
../include/modules.h:299: error: expected specifier-qualifier-list before âaCommandâ
../include/modules.h:326: error: expected specifier-qualifier-list before âCmdoverrideâ
../include/modules.h:447: error: expected specifier-qualifier-list before âtime_tâ
../include/modules.h:464: error: expected specifier-qualifier-list before âtime_tâ
../include/modules.h:481: error: expected â)â before â*â token
../include/modules.h:580: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../include/modules.h:581: error: expected â)â before â*â token
../include/modules.h:582: error: expected â)â before â*â token
m_quit.c:35:20: error: s_conf.h: No such file or directory
m_quit.c:37: warning: âstruct Clientâ declared inside parameter list
m_quit.c:37: warning: its scope is only this definition or declaration, which is probably not what you want
m_quit.c:38: warning: âstruct Clientâ declared inside parameter list
m_quit.c:40: error: variable âquit_msgtabâ has initializer but incomplete type
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: error: âMFLG_SLOWâ undeclared here (not in a function)
m_quit.c:41: error: âMFLG_UNREGâ undeclared here (not in a function)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:42: error: extra brace group at end of initializer
m_quit.c:42: error: (near initialization for âquit_msgtabâ)
m_quit.c:42: error: âm_ignoreâ undeclared here (not in a function)
m_quit.c:42: warning: excess elements in struct initializer
m_quit.c:42: warning: (near initialization for âquit_msgtabâ)
m_quit.c:68: warning: âstruct Clientâ declared inside parameter list
m_quit.c:69: error: conflicting types for âm_quitâ
m_quit.c:37: error: previous declaration of âm_quitâ was here
m_quit.c: In function âm_quitâ:
m_quit.c:70: error: dereferencing pointer to incomplete type
m_quit.c:71: error: âKICKLENâ undeclared (first use in this function)
m_quit.c:71: error: (Each undeclared identifier is reported only once
m_quit.c:71: error: for each function it appears in.)
m_quit.c:74: warning: assignment makes pointer from integer without a cast
m_quit.c:77: error: dereferencing pointer to incomplete type
m_quit.c:77: error: âConfigFileEntryâ undeclared (first use in this function)
m_quit.c:78: error: âCurrentTimeâ undeclared (first use in this function)
m_quit.c: At top level:
m_quit.c:93: warning: âstruct Clientâ declared inside parameter list
m_quit.c:94: error: conflicting types for âms_quitâ
m_quit.c:38: error: previous declaration of âms_quitâ was here
m_quit.c: In function âms_quitâ:
m_quit.c:95: error: dereferencing pointer to incomplete type
m_quit.c:97: warning: incompatible implicit declaration of built-in function âstrlenâ
m_quit.c:97: error: âsize_tâ undeclared (first use in this function)
m_quit.c:97: error: expected â)â before âKICKLENâ
m_quit.c:98: error: âKICKLENâ undeclared (first use in this function)
m_quit.c:101:2: warning: no newline at end of file
make[2]: *** [m_quit.o] Error 1
make[2]: Leaving directory `/home/melek/Unreal3.2/src/modules'
make[1]: *** [mods] Error 2
make[1]: Leaving directory `/home/melek/Unreal3.2/src'
make: *** [build] Error 2
melek@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...].gen.tr [~/Unreal3.2]# make
Building src
make[1]: Entering directory `/home/melek/Unreal3.2/src'
cd modules; make 'CFLAGS=-I../include -I/home/melek/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -export-dynamic  ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl  -ldl -L/home/melek/Unreal3.2/extras/regexp/lib -ltre  ' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/home/melek/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/home/melek/Unreal3.2' 'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=' 'CRYPTOINCLUDES=' 'URL='  all
make[2]: Entering directory `/home/melek/Unreal3.2/src/modules'
gcc -I../include -I/home/melek/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -export-dynamic  -fPIC -DPIC -shared  -c m_quit.c
m_quit.c:25:20: error: stdinc.h: No such file or directory
m_quit.c:26:22: error: handlers.h: No such file or directory
m_quit.c:27:20: error: client.h: No such file or directory
m_quit.c:28:18: error: ircd.h: No such file or directory
m_quit.c:29:24: error: irc_string.h: No such file or directory
m_quit.c:30:20: error: s_serv.h: No such file or directory
m_quit.c:31:18: error: send.h: No such file or directory
m_quit.c:33:19: error: parse.h: No such file or directory
In file included from m_quit.c:34:
../include/modules.h:111: error: expected â)â before â*â token
../include/modules.h:112: error: expected â;â before âcharâ
../include/modules.h:119: error: expected â)â before â*â token
../include/modules.h:120: error: expected â;â before âcharâ
../include/modules.h:267: error: expected â)â before â*â token
../include/modules.h:276: error: expected â;â before âcharâ
../include/modules.h:291: error: expected â)â before â*â token
../include/modules.h:292: error: expected â;â before âcharâ
../include/modules.h:299: error: expected specifier-qualifier-list before âaCommandâ
../include/modules.h:326: error: expected specifier-qualifier-list before âCmdoverrideâ
../include/modules.h:447: error: expected specifier-qualifier-list before âtime_tâ
../include/modules.h:464: error: expected specifier-qualifier-list before âtime_tâ
../include/modules.h:481: error: expected â)â before â*â token
../include/modules.h:580: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
../include/modules.h:581: error: expected â)â before â*â token
../include/modules.h:582: error: expected â)â before â*â token
m_quit.c:35:20: error: s_conf.h: No such file or directory
m_quit.c:37: warning: âstruct Clientâ declared inside parameter list
m_quit.c:37: warning: its scope is only this definition or declaration, which is probably not what you want
m_quit.c:38: warning: âstruct Clientâ declared inside parameter list
m_quit.c:40: error: variable âquit_msgtabâ has initializer but incomplete type
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: error: âMFLG_SLOWâ undeclared here (not in a function)
m_quit.c:41: error: âMFLG_UNREGâ undeclared here (not in a function)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:41: warning: excess elements in struct initializer
m_quit.c:41: warning: (near initialization for âquit_msgtabâ)
m_quit.c:42: error: extra brace group at end of initializer
m_quit.c:42: error: (near initialization for âquit_msgtabâ)
m_quit.c:42: error: âm_ignoreâ undeclared here (not in a function)
m_quit.c:42: warning: excess elements in struct initializer
m_quit.c:42: warning: (near initialization for âquit_msgtabâ)
m_quit.c:68: warning: âstruct Clientâ declared inside parameter list
m_quit.c:69: error: conflicting types for âm_quitâ
m_quit.c:37: error: previous declaration of âm_quitâ was here
m_quit.c: In function âm_quitâ:
m_quit.c:70: error: dereferencing pointer to incomplete type
m_quit.c:71: error: âKICKLENâ undeclared (first use in this function)
m_quit.c:71: error: (Each undeclared identifier is reported only once
m_quit.c:71: error: for each function it appears in.)
m_quit.c:74: warning: assignment makes pointer from integer without a cast
m_quit.c:77: error: dereferencing pointer to incomplete type
m_quit.c:77: error: âConfigFileEntryâ undeclared (first use in this function)
m_quit.c:78: error: âCurrentTimeâ undeclared (first use in this function)
m_quit.c: At top level:
m_quit.c:93: warning: âstruct Clientâ declared inside parameter list
m_quit.c:94: error: conflicting types for âms_quitâ
m_quit.c:38: error: previous declaration of âms_quitâ was here
m_quit.c: In function âms_quitâ:
m_quit.c:95: error: dereferencing pointer to incomplete type
m_quit.c:97: warning: incompatible implicit declaration of built-in function âstrlenâ
m_quit.c:97: error: âsize_tâ undeclared (first use in this function)
m_quit.c:97: error: expected â)â before âKICKLENâ
m_quit.c:98: error: âKICKLENâ undeclared (first use in this function)
m_quit.c:101:2: warning: no newline at end of file
make[2]: *** [m_quit.o] Error 1
make[2]: Leaving directory `/home/melek/Unreal3.2/src/modules'
make[1]: *** [mods] Error 2
make[1]: Leaving directory `/home/melek/Unreal3.2/src'
make: *** [build] Error 2

yardım edermisiniz eski m_q. ekledim olmadı yine aynı hatayı aldım

toXic 15 Kasım 2011 14:28

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] Kodlar çakışıyordur.
@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] orjinal quit.c at öyle bir derlemeyi deneyin. .h hatalari veriyor cünkü.

fLayer 15 Kasım 2011 14:51

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
evet diger hesaptan quit.c aldım şimdi düzeldi yanlız başka hatalar almaya bşalıyorum
bir nicke whois çekmeyi yassaklamıştım aldıgım Sonuç;

Flag a: user is away
Flag c <channel>: user is on <channel>,
no wildcards accepted
Flag g <gcos/realname>: user has string <gcos> in his/her GCOS,
wildcards accepted
Flag h <host>: user has string <host> in his/her hostname,
wildcards accepted
Flag i <ip>: user has string <ip> in his/her IP address,
wildcards accepted
Flag m <usermodes>: user has <usermodes> set
Flag n <nick>: user has string <nick> in his/her nickname,
wildcards accepted
Flag s <server>: user is on server <server>,
wildcards not accepted
Flag u <user>: user has string <user> in his/her username,
wildcards accepted
Behavior flags:
Flag M: check for user in channels I am a member of
Flag R: show users' real hostnames
Flag I: show users' IP addresses
-ŞşŞŞ- End of /WHO list.

toXic 15 Kasım 2011 15:08

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Alıntı:

SuRGuN Nickli Üyeden Alıntı (Mesaj 1040915500)
evet diger hesaptan quit.c aldım şimdi düzeldi yanlız başka hatalar almaya bşalıyorum
bir nicke whois çekmeyi yassaklamıştım aldıgım Sonuç;

Flag a: user is away
Flag c <channel>: user is on <channel>,
no wildcards accepted
Flag g <gcos/realname>: user has string <gcos> in his/her GCOS,
wildcards accepted
Flag h <host>: user has string <host> in his/her hostname,
wildcards accepted
Flag i <ip>: user has string <ip> in his/her IP address,
wildcards accepted
Flag m <usermodes>: user has <usermodes> set
Flag n <nick>: user has string <nick> in his/her nickname,
wildcards accepted
Flag s <server>: user is on server <server>,
wildcards not accepted
Flag u <user>: user has string <user> in his/her username,
wildcards accepted
Behavior flags:
Flag M: check for user in channels I am a member of
Flag R: show users' real hostnames
Flag I: show users' IP addresses
-ŞşŞŞ- End of /WHO list.


Bunu nerede aliyorsun? Sanirim statuste. Orayada Orjinal whois.c atin derleyin ardindan dikkatli birşekilde tekrar ekleyin whois yasaklama kodlarini.

eTheRciTy 16 Haziran 2012 00:02

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Modul sorunsuz çalışıyorda. Çıkış mesajı yada Saat'i nasıl renklendirebiliriz ?

toXic 16 Haziran 2012 02:54

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
txt ye alip mircde yaptiğiniz sekilde renk kodlarini ekleyip ftpden atip calistiracaksiniz.

eTheRciTy 18 Haziran 2012 12:21

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Tamam @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] O dediğinizi zaten yaptım ama. hiç bi değişiklik olmadı.

toXic 18 Haziran 2012 13:33

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Attiktan sonra rehash cekeceksin. Hata vermezse çalişiyor.

SHBiLisim 30 Aralık 2012 16:48

Cevap: Unreal3.2* m_quit.c cıkıs mesajı toplam bağlantı süresi.
 
Toplam 1 Eklenti bulunuyor.
PHP- Kodu:

/*
 *   Unreal Internet Relay Chat Daemon, src/modules/m_quit.c
 *   (C) 2000-2001 Carsten V. Munk and the UnrealIRCd Team
 *   Moved to modules by Fish (Justin Hammond)
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 1, or (at your option)
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 /* Düzenleme: 18.03.2012 -  Entrance
   Mailto: info[@]hobichat.net
   Web: 
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
style="color: #0000BB">DLLFUNC int m_quit
(aClient *cptraClient *sptrint parcchar *parv[]);
/* Place includes here */
#define MSG_QUIT        "QUIT"  /* QUIT */
#define TOK_QUIT        ","     /* 44 */
ModuleHeader MOD_HEADER(m_quit)
  = {
 
"quit"/* Name of module */
 
"$Id: m_quit.c,v 1.1.2.25.2.2 2006/01/06 19:53:41 syzop Exp $"/* Version */
 
"command /quit"/* Short description of module */
 
"3.2-b8-1",
 
NULL 
    
};
/* This is called on module init, before Server Ready */
DLLFUNC int MOD_INIT(m_quit)(ModuleInfo *modinfo)
{
 
/*
  * We call our add_Command crap here
 */
 
add_CommandX(MSG_QUITTOK_QUITm_quit1M_UNREGISTERED|M_USER|M_VIRUS);
 
MARK_AS_OFFICIAL_MODULE(modinfo);
 return 
MOD_SUCCESS;
}
/* Is first run when server is 100% ready */
DLLFUNC int MOD_LOAD(m_quit)(int module_load)
{
 return 
MOD_SUCCESS;
}
/* Called when module is unloaded */
DLLFUNC int MOD_UNLOAD(m_quit)(int module_unload)
{
 if (
del_Command(MSG_QUITTOK_QUITm_quit) < 0)
 {
  
sendto_realops("Failed to delete commands when unloading %s",
    
MOD_HEADER(m_quit).name);
 }
 return 
MOD_SUCCESS;
}
/*
** m_quit
** parv[0] = sender prefix
** parv[1] = comment
*/
char saat[1024];
DLLFUNC int  m_quit(aClient *cptraClient *sptrint parcchar *parv[])
{
 
char *ocomment = (parc && parv[1]) ? parv[1] : parv[0];
 static 
char comment[TOPICLEN 1];
 
Membership *lp;
 if (!
IsServer(cptr) && IsPerson(sptr))
 {
#ifdef STRIPBADWORDS
  
int blocked 0;
#endif
  
int n;
  
char *comment;
  
Hook *tmphook;
             if (
STATIC_QUIT)
             if ((
TStime() - sptr->firsttime) > 86400)
                
ircsprintf(saat"%s - Bağlantı süresi: %d gün %d sa %d dk %d sn"STATIC_QUIT, ((TStime() - sptr->firsttime) / 86400), (((TStime() - sptr->firsttime) % 86400) / 3600), ((((TStime() - sptr->firsttime) % 86400) % 3600) / 60), (((((TStime() - sptr->firsttime) % 86400) % 3600) % 60) % 60));
            else if ((
TStime() - sptr->firsttime) > 3600)
                
ircsprintf(saat"%s - Bağlantı süresi: %d sa %d dk %d sn"STATIC_QUIT, (((TStime() - sptr->firsttime) / 3600)), (((TStime() - sptr->firsttime) % 3600) / 60), ((((TStime() - sptr->firsttime) % 3600) % 60) % 60));
            else if ((
TStime() - sptr->firsttime) > 60)
                
ircsprintf(saat"%s - Bağlantı süresi: %d dk %d sn"STATIC_QUIT, ((TStime() - sptr->firsttime) / 60), ((TStime() - sptr->firsttime) % 60));
            else
                
ircsprintf(saat"%s"STATIC_QUIT);
            return 
exit_client(cptrsptrsptrsaat);
  if (
IsVirus(sptr))
   return 
exit_client(cptrsptrsptr"Client exited");
  if (!
prefix_quit || strcmp(prefix_quit"no"))
   
ircsprintf(comment"%s ",
        
BadPtr(prefix_quit) ? "Quit:" prefix_quit);
#ifdef STRIPBADWORDS
  
ocomment = (char *)stripbadwords_quit(ocomment, &blocked);
  if (
blocked)
   
ocomment parv[0];
#endif
  
dospamfilter(sptrocommentSPAMF_QUITNULL0NULL);
  if (
== FLUSH_BUFFER)
   return 
n;
  if (
0)
   
ocomment parv[0];
 
  if (!
IsAnOper(sptr) && ANTI_SPAM_QUIT_MSG_TIME)
   if (
sptr->firsttime+ANTI_SPAM_QUIT_MSG_TIME TStime())
    
ocomment parv[0];
  
/* Strip color codes if any channel is +S, use nick as reason if +c. */
  
if (IsPerson(sptr) && (strchr(ocomment'\003')))
  {
   
unsigned char filtertype 0/* 1=filter, 2=block, highest wins. */
   
for (lp sptr->user->channellplp lp->next)
   {
    if (
lp->chptr->mode.mode MODE_NOCOLOR)
    {
     
filtertype 2;
     break;
    }
    if (
lp->chptr->mode.mode MODE_STRIP)
    {
     if (!
filtertype)
      
filtertype 1;
    }
   }
   if (
filtertype == 1)
   {
    
ocomment StripColors(ocomment);
    if (*
ocomment == '\0')
     
ocomment parv[0];
   } else
   if (
filtertype == 2)
    
ocomment parv[0];
  } 
/* (strip color codes) */
                
for (tmphook Hooks[HOOKTYPE_PRE_LOCAL_QUIT]; tmphooktmphook tmphook->next)
  {
                 
ocomment = (*(tmphook->func.pcharfunc))(sptrocomment);
                        if (!
ocomment)
   {   
    
ocomment parv[0];
                                break;
                        }
                }
  
strncpy(socommentTOPICLEN - (comment));
  
comment[TOPICLEN] = '\0';
  return 
exit_client(cptrsptrsptrcomment);
 }
 else
 {
  return 
exit_client(cptrsptrsptrocomment);
 }


Eklenti Olarak ' da verdim arkadaşlar.

Kurulum İçin :

Ssh Login olduktan sonra sırasıyla.

cd Unreal3.2
make custommodule MODULEFILE=m_quit
make
./unreal rehash

Sonraki Yapacagım işlem

Ftp Baglanalım

Unreal3.2/unrealircd.conf

girip

loadmodule "src/modules/m_quit.so";
Ekleyelim eger Unreal3.2/src/modules içersin de m_quit.so var ise silelim aksi taktir de make uyguladıgımız da hata verecektir.

Kurulum bittikten sonra İRCD girip /s -m yapın ve girin 1 dakika bekleyiniz ve çıkış yaptıgınız da sonucu göreksiniz.

Örnek :

[16:47] *** Çıkış: Users (İ
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
(Belirlenemedi)) (« Yine Bekleriz » - Bağlantı süresi: 4 dk 47 sn)

Sorun yaşayanlar konu altın da sorunlarını söyleyebilirler konu günceldir.


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 01:24.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk