Menü
Ana sayfa
Portal
Forumlar
Yeni mesajlar
Forumlarda ara
Neler yeni
Featured content
Yeni mesajlar
Yeni profil mesajları
Son aktiviteler
Kullanıcılar
Kayıtlı üyeler
Şu anki ziyaretçiler
Yeni profil mesajları
Profil mesajlarında ara
Giriş yap
Kayıt ol
Neler yeni
Ara
Ara
Sadece başlıkları ara
Kullanıcı:
Menü
Giriş yap
Kayıt ol
Ana sayfa
Forumlar
Genel IRCD (Sunucu, Servis, Botlar, Korumalar)
Unreal IRCd
Hazır_kodlar
m_helpmotd (/helpmotd) Helper Listesi
JavaScript devre dışı. Daha iyi bir deneyim için, önce lütfen tarayıcınızda JavaScript'i etkinleştirin.
Çok eski bir web tarayıcısı kullanıyorsunuz. Bu veya diğer siteleri görüntülemekte sorunlar yaşayabilirsiniz..
Tarayıcınızı güncellemeli veya
alternatif bir tarayıcı
kullanmalısınız.
Konuya cevap cer
Mesaj
<blockquote data-quote="deL" data-source="post: 67"><p>Merhaba, bir arkadaşımın istedi üzerine yapmış olduğum bir modul,</p><p><strong>KOMUT: /helpmotd</strong></p><p></p><p>Kurulum: Unreal <u>anadizinine</u> <strong>ircd.helpmotd</strong> isimli dosya oluşturup içeriğini ekleyiniz.</p><p>Aşağıdaki modulu Unrealinizin <strong>src/modules</strong> klasörü içerisine atıp ssh'den Unreal anadizininize gelip, <strong>make custommodule MODULEFILE=m_helpmotd</strong> komutu ile kurunuz daha sonra sunucunuzda <strong>/rehash</strong> komutunu uygulayınız. </p><p></p><p>[CODE]/*</p><p>* /helpmotd modulü by YouMyCure</p><p>*/</p><p>#include "config.h"</p><p>#include "struct.h"</p><p>#include "common.h"</p><p>#include "sys.h"</p><p>#include "numeric.h"</p><p>#include "msg.h"</p><p>#include "proto.h"</p><p>#include "channel.h"</p><p>#include <time.h></p><p>#include <sys/stat.h></p><p>#include <stdio.h></p><p>#include <stdlib.h></p><p>#include <string.h></p><p>#ifdef _WIN32</p><p>#include <io.h></p><p>#endif</p><p>#include <fcntl.h></p><p>#include "h.h"</p><p>#ifdef STRIPBADWORDS</p><p>#include "badwords.h"</p><p>#endif</p><p>#ifdef _WIN32</p><p>#include "version.h"</p><p>#endif</p><p></p><p>DLLFUNC int m_helpmotd(aClient *cptr, aClient *sptr, int parc, char *parv[]);</p><p></p><p>#define MSG_HELPMOTD "HELPMOTD" </p><p>#define TOK_HELPMOTD "t"</p><p>#define HMOTD "ircd.helpmotd"</p><p> </p><p></p><p>ModuleHeader MOD_HEADER(m_helpmotd)</p><p>= {</p><p> "m_helpmotd",</p><p> "$Id$",</p><p> "Helper Motd Eklentisi by YouMyCure /helpmotd",</p><p> "3.2-b8-1",</p><p> NULL</p><p> };</p><p></p><p> DLLFUNC int MOD_INIT(m_helpmotd)(ModuleInfo *modinfo)</p><p> {</p><p> add_Command(MSG_HELPMOTD, TOK_HELPMOTD, m_helpmotd, MAXPARA);</p><p> MARK_AS_OFFICIAL_MODULE(modinfo);</p><p> return MOD_SUCCESS;</p><p> }</p><p></p><p> DLLFUNC int MOD_LOAD(m_helpmotd)(int module_load)</p><p> {</p><p> return MOD_SUCCESS;</p><p> }</p><p></p><p> DLLFUNC int MOD_UNLOAD(m_helpmotd)(int module_unload)</p><p> {</p><p> if (del_Command(MSG_HELPMOTD, TOK_HELPMOTD, m_helpmotd) < 0)</p><p> {</p><p> sendto_realops("Failed to delete commands when unloading %s",</p><p> MOD_HEADER(m_helpmotd).name);</p><p> }</p><p> return MOD_SUCCESS;</p><p> }</p><p></p><p> DLLFUNC int m_helpmotd(aClient *cptr, aClient *sptr, int parc, char *parv[])</p><p> {</p><p> FILE *dosya;</p><p> char buf[BUFSIZE];</p><p> dosya = fopen(HMOTD, "r");</p><p> if (dosya != NULL) {</p><p> while (fgets(buf, sizeof(buf), dosya)) {</p><p> sendto_one(sptr, ":%s", buf);</p><p> }</p><p> return 0;</p><p> }</p><p></p><p> }[/CODE]</p><p></p><p><strong>Test Edilen Unreal Sürümü: 3.2.10.4</strong> </p><p></p><p><strong><em>CodeMaster <a href="https://www.ircforumlari.net/if-uye/137422-youmycure.html" target="_blank">YouMyCure</a> </em></strong></p></blockquote><p></p>
[QUOTE="deL, post: 67"] Merhaba, bir arkadaşımın istedi üzerine yapmış olduğum bir modul, [B]KOMUT: /helpmotd[/B] Kurulum: Unreal [U]anadizinine[/U] [B]ircd.helpmotd[/B] isimli dosya oluşturup içeriğini ekleyiniz. Aşağıdaki modulu Unrealinizin [B]src/modules[/B] klasörü içerisine atıp ssh'den Unreal anadizininize gelip, [B]make custommodule MODULEFILE=m_helpmotd[/B] komutu ile kurunuz daha sonra sunucunuzda [B]/rehash[/B] komutunu uygulayınız. [CODE]/* * /helpmotd modulü by YouMyCure */ #include "config.h" #include "struct.h" #include "common.h" #include "sys.h" #include "numeric.h" #include "msg.h" #include "proto.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" #ifdef STRIPBADWORDS #include "badwords.h" #endif #ifdef _WIN32 #include "version.h" #endif DLLFUNC int m_helpmotd(aClient *cptr, aClient *sptr, int parc, char *parv[]); #define MSG_HELPMOTD "HELPMOTD" #define TOK_HELPMOTD "t" #define HMOTD "ircd.helpmotd" ModuleHeader MOD_HEADER(m_helpmotd) = { "m_helpmotd", "$Id$", "Helper Motd Eklentisi by YouMyCure /helpmotd", "3.2-b8-1", NULL }; DLLFUNC int MOD_INIT(m_helpmotd)(ModuleInfo *modinfo) { add_Command(MSG_HELPMOTD, TOK_HELPMOTD, m_helpmotd, MAXPARA); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } DLLFUNC int MOD_LOAD(m_helpmotd)(int module_load) { return MOD_SUCCESS; } DLLFUNC int MOD_UNLOAD(m_helpmotd)(int module_unload) { if (del_Command(MSG_HELPMOTD, TOK_HELPMOTD, m_helpmotd) < 0) { sendto_realops("Failed to delete commands when unloading %s", MOD_HEADER(m_helpmotd).name); } return MOD_SUCCESS; } DLLFUNC int m_helpmotd(aClient *cptr, aClient *sptr, int parc, char *parv[]) { FILE *dosya; char buf[BUFSIZE]; dosya = fopen(HMOTD, "r"); if (dosya != NULL) { while (fgets(buf, sizeof(buf), dosya)) { sendto_one(sptr, ":%s", buf); } return 0; } }[/CODE] [B]Test Edilen Unreal Sürümü: 3.2.10.4[/B] [B][I]CodeMaster [URL='https://www.ircforumlari.net/if-uye/137422-youmycure.html']YouMyCure[/URL] [/I][/B] [/QUOTE]
Adı
İnsan doğrulaması
Cevap yaz
Ana sayfa
Forumlar
Genel IRCD (Sunucu, Servis, Botlar, Korumalar)
Unreal IRCd
Hazır_kodlar
m_helpmotd (/helpmotd) Helper Listesi
Üst