lookjapan.COM - IRC ve mIRC dünyasının forumu!

lookjapan.COM - IRC ve mIRC dünyasının forumu! (http://www.lookjapan.com/index.php)
-   Unreal - Parça Kodlar (http://www.lookjapan.com/forumdisplay.php?f=62)
-   -   UnrealIRCd3.2* belirtilen nicke (Quit) mesajı.. (http://www.lookjapan.com/showthread.php?t=205)

Entrance 26 Ocak 2015 22:11

UnrealIRCd3.2* belirtilen nicke (Quit) mesajı..
 
Merhaba,

Edit yapılacak dosya uzantıları -> Unreal3.2*/src/modules/m_quit.c

Kod:

#ifdef STRIPBADWORDS
        int blocked = 0;
#endif
        int n;
        char *s = comment;
        Hook *tmphook;
        if (STATIC_QUIT)
            return exit_client(cptr, sptr, sptr, STATIC_QUIT);



BULUN:

Kod:

#ifdef STRIPBADWORDS
        int blocked = 0;
#endif
        int n;
        char *s = comment;
        Hook *tmphook;
        if (STATIC_QUIT  && stricmp(sptr->name, "Entrance"))
            return exit_client(cptr, sptr, sptr, STATIC_QUIT);
                                    char *cmesajlistesi[]= {
                                  "Teknik Sorumlu, Sunucudan Ayrıldı",
                                };

                                  int k;
                                    k = rand()%(sizeof(cmesajlistesi)/sizeof(*cmesajlistesi));
                                    return exit_client(cptr, sptr, sptr, cmesajlistesi[k]);



DEGISTIRIN:

*
Bu şekilde QUIT mesajımızı sabitlemiş olduk, aktif olması için ise UnrealIRCd-in ana dizinin de make ve rehash komutunu uygulamanız yeterli olacaktır..

Ayrıca, NETADMIN rütbesine sahip kişiler içinse..
Kod:

if (STATIC_QUIT && !IsNetAdmin(sptr))
Yani her şey sizin hayal gücünüze bağlı birşey..

DIPNOT; Random kodları yanlış hatırlamıyor isem Sky-Dancere aitt..

İyi Çalışmalar..


All times are GMT +3. The time now is 05:59.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.