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)
-   -   Topic'de Rumuz Değişkeni Ekleme. (http://www.lookjapan.com/showthread.php?t=755)

Entrance 14 Şubat 2015 19:48

Topic'de Rumuz Değişkeni Ekleme.
 
Klasör: Unreal3.2*/scr/modules/
Dosya: <m_join.c>

BULUN
:
Kod:

  if (chptr->topic)
        {
           
sendto_one(sptr, rpl_str(RPL_TOPIC),
               
me.name, sptr->name, chptr->chname, chptr->topic);
           
sendto_one(sptr,
               
rpl_str(RPL_TOPICWHOTIME), me.name,
               
sptr->name, chptr->chname, chptr->topic_nick,
               
chptr->topic_time);
        } 

DEGISTIRIN:

Kod:

if (chptr->topic)
        {
           
char xtopic[500];
           
char xtopic1[305];
           
           
char harf[3];
           
char harf1[2] = " ";
           
sprintf(xtopic1, "%s", chptr->topic);
            if (
strstr(xtopic1, "$")) {
           
int i, x;
           
x=strlen(chptr->topic);
           
i=0;
              for (
i=0; i<x;i++) {
                if (
i==0)
                 
strcpy( xtopic, harf1 );
              if (
xtopic1[i] == (char)36) {
             
strcat( xtopic, sptr->name );
                } else {
             
sprintf(harf, "%c", xtopic1[i]);
             
strcat( xtopic, harf );
                }

                }
       
           
sendto_one(sptr, rpl_str(RPL_TOPIC),
               
me.name, sptr->name, chptr->chname, xtopic);
            }
            else {
           
sendto_one(sptr, rpl_str(RPL_TOPIC),
               
me.name, sptr->name, chptr->chname, chptr->topic);
            }
           
sendto_one(sptr,
               
rpl_str(RPL_TOPICWHOTIME), me.name,
               
sptr->name, chptr->chname, chptr->topic_nick,
               
chptr->topic_time);
        } 

* make ve ./unreal rehash komutlarını uygulamanız halinde işleminiz gerçekleşmiş olacak, böylece TOPIC-e $ karakterini eklediğiniz herhangi bir kanala girdiğinizde kullanmış olduğunuz Rumuz, şeklinde görünecektir.

Kod yazarı: ysfm

İyi forumlar.. ^^

dEathLeSs 25 Aralık 2016 23:59

Cevap: Topic'de Rumuz Değişkeni Ekleme.
 
UnrealIRCd-4 versiyonunda test edilmiştir. Şuanlık bug yoktur. =)


All times are GMT +3. The time now is 14:17.

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