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

Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 05 Ekim 2008, 16:21   #1
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
ChanServ Konuşturma.




S.a IRC Ustatları oncelık'le soyleişey düşündüm hem bana lazım hemde IF'de arayan arkdaşlarımız olabılır IRCServices Sürümleri ve IF-Services Kulananlar için.

#Sohbet
#Ankara
#İzmir
#Kırşehir
#Adana
#istanbul

Ornek Olarak Kanallarımız bunlar, bu kanalların Founderler'i kanaL'a girdiğin'de ChanServ otamatık Olarak

#Sohbet kanalının ( founderi ) Örnek ; pire40 şu anda kanala giriş yaptı.

ve Arkdaş'lar OperServ'dede aynı şekiL'de Sunucuda bulunan Oper Flanglarını tasıyan veya Oper Nicklerini tasiyan Kısıler kanaL'a giriş yaptığında ( OperServ ) Otamatik Olarak.

ircforumlari.NET Sunucu görelilerinden Ornek ; IF Su anda kanal'a giriş yaptı

gıbı tür şeyleri yapabılmemiz mümkün'mü hı diceksinizkı pire40 hep ıstıyorsun, nick son konular'da hep istemek'le gecdi, fakat bunları sizlerden örenerek sızden sonra bıze sorulan sorular'ada bızım cevap vermemiz olucak'dır..

Saygımlarımla..

 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları sohbet odaları Benimmekan Mobil Sohbet
Alt 05 Ekim 2008, 17:03   #2
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




bu ne
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.

 
Alıntı ile Cevapla

Alt 05 Ekim 2008, 18:02   #3
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




kanal founderlarına karşılama olayı için

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
cd ircservices* cd modules cd chanserv pico check.c

şu satırların altına ;
Kod:   Kodu kopyalamak için üzerine çift tıklayın!
if (call_callback_4(module, cb_check_chan_user_modes, source, user, c, modes) > 0) return;

şu şekilde tek tek kanalları ekleyeceksiniz ben #deneme kanalı için veriyorum

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
if (!stricmp(c->name, "#deneme") && check_access(user, ci, CA_AUTOOWNER)) { send_cmd(s_ChanServ, "PRIVMSG #deneme #deneme Kanalı Founder %s Kanala Giriş Yaptı.", user->nick); }

ekleyiniz ircservices* anadizinide make , make install çekip serviceslere restart atınız

örnek uygulama

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
[17:48] *** services.e-dost.net mod değiştirdi:+o Gemlik [17:48] <ChanServ> #deneme Kanalı Founder Gemlik Kanala Giriş Yaptı. [17:48] *** ChanServ mod değiştirdi:+ntrq Gemlik


 
Alıntı ile Cevapla

Alt 05 Ekim 2008, 18:45   #4
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




Teşekkürler ali abi Paylaşımın için saol

 
Alıntı ile Cevapla

Alt 06 Ekim 2008, 00:31   #5
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




if (call_callback_4(module, cb_check_chan_user_modes,
source, user, c, modes) > 0)
return;
if (!stricmp(c->name, "#tRSohbet") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #tRSohbet tRSohbet Kanalı Founderi %s Şu Anda Kanala Giriş Yaptı.", user->nick);
}

 
Alıntı ile Cevapla

Alt 06 Ekim 2008, 04:32   #6
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




verdiğin cevapdan birşey anlamadım :S yukarıda açıkladığım şekilde yaparsan sorunsuz istediğine ulaşırsın

 
Alıntı ile Cevapla

Alt 07 Ekim 2008, 00:48   #7
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




modules/operserv/news.c:355: error: stray '\167' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\167' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\167' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\167' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\164' in program
modules/operserv/news.c:355: error: stray '\167' in program
modules/operserv/news.c:355: error: stray '\' in program
modules/operserv/news.c:355: error: missing terminating " character
make[4]: *** [.compiled-news.o] Error 1
make[3]: *** [news.o] Error 2
make[2]: *** [news.so] Error 2
make[2]: Leaving directory `/home/inceden/ircservices-5.0.62/modules/operserv'
make[1]: *** [all-dynamic] Error 2
make[1]: Leaving directory `/home/inceden/ircservices-5.0.62/modules'
make: *** [modules] Error 2

 
Alıntı ile Cevapla

Alt 07 Ekim 2008, 01:34   #8
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




sanırım kodları yalnış yere yaptınız operserv news.c ile alakası yok chanserv check.c e yapacaksınız verilen kodları iyi okuyup düzenleyein. yada bu hatayı ne yaptığıınızda aldınız belirtiniz.

 
Alıntı ile Cevapla

Alt 07 Ekim 2008, 14:08   #9
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




Evet yanlış yapmışın, Gemlik aynen uyguladım Oldu .)

[13:54] <ChanServ> « Zurna Kanalı Founderi [ ~ EnableExclude ] Şu Anda Kanala Giriş Yaptı »

Arkadaşım yapamadıysan pm veya buraya yaz yardımcı Olalım.

 
Alıntı ile Cevapla

Alt 07 Ekim 2008, 14:17   #10
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: ChanServ Konuşturma.




EnableExclude Nickli Üyeden Alıntı
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.


/* Routines to check validity of JOINs and mode changes.
*
* IRC Services is copyright (c) 1996-2005 Andrew Church.
* E-mail: <
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
>
* Parts written by Andrew Kempe and others.
* This program is free but copyrighted software; see the file COPYING for
* details.
*/
#include "services.h"
#include "modules.h"
#include "language.h"
#include "timeout.h"
#include "modules/nickserv/nickserv.h"
#include "modules/operserv/operserv.h"
#include "chanserv.h"
#include "cs-local.h"
/************************************************** ***********************/
static Module *module;
static int cb_check_modes = -1;
static int cb_check_chan_user_modes = -1;
static int cb_check_kick = -1;
static void local_set_cumodes(Channel *c, char plusminus, int32 modes,
struct c_userlist *cu);
/************************************************** ***********************/
/************************************************** ***********************/
/* Check the current modes on a channel; if they conflict with a mode lock,
* fix them. */
void check_modes(Channel *c)
{
static int in_check_modes = 0;
ChannelInfo *ci;
char newmode[3];
int flag;
if (!c || c->bouncy_modes)
return;
if (!NoBouncyModes) {
/* Check for mode bouncing */
if (c->server_modecount >= 3 && c->chanserv_modecount >= 3) {
wallops(NULL, "Warning: unable to set modes on channel %s. "
"Are your servers configured correctly?", c->name);
module_log("Bouncy modes on channel %s", c->name);
c->bouncy_modes = 1;
return;
}
if (c->chanserv_modetime != time(NULL)) {
c->chanserv_modecount = 0;
c->chanserv_modetime = time(NULL);
}
c->chanserv_modecount++;
}
ci = c->ci;
if (!ci) {
/* Services _always_ knows who should be +r. If a channel tries to be
* +r and is not registered, send mode -r. This will compensate for
* servers that are split when mode -r is initially sent and then try
* to set +r when they rejoin. -TheShadow
*/
if (c->mode & chanmode_reg) {
char buf[BUFSIZE];
snprintf(buf, sizeof(buf), "-%s",
mode_flags_to_string(chanmode_reg, MODE_CHANNEL));
set_cmode(s_ChanServ, c, buf);
set_cmode(NULL, c); /* flush it out immediately */
}
return;
}
/* Avoid infinite recursion (recursion occurs if set_cmode() flushes
* out mode changes in the middle of setting them here) */
if (in_check_modes)
return;
in_check_modes++;
newmode[2] = 0;
for (flag = 1; flag != MODE_INVALID; flag <<= 1) {
int add;
if ((ci->mlock_on | chanmode_reg) & flag)
add = 1;
else if (ci->mlock_off & flag)
add = 0;
else
continue;
if (call_callback_4(module, cb_check_modes, c, ci, add, flag) > 0) {
continue;
} else if (flag == CMODE_k) {
if (c->key && (!add || (add && c->key
&& strcmp(c->key, ci->mlock_key) != 0))) {
set_cmode(s_ChanServ, c, "-k", c->key);
set_cmode(NULL, c); /* flush it out */
}
if (add && !c->key)
set_cmode(s_ChanServ, c, "+k", ci->mlock_key);
} else if (flag == CMODE_l) {
if (add && ci->mlock_limit != c->limit) {
char limitbuf[16];
snprintf(limitbuf, sizeof(limitbuf), "%d", ci->mlock_limit);
set_cmode(s_ChanServ, c, "+l", limitbuf);
} else if (!add && c->limit != 0) {
set_cmode(s_ChanServ, c, "-l");
}
} else if (add ^ !!(c->mode & flag)) {
newmode[0] = add ? '+' : '-';
newmode[1] = mode_flag_to_char(flag, MODE_CHANNEL);
set_cmode(s_ChanServ, c, newmode);
}
}
in_check_modes--;
}
/************************************************** ***********************/
/* Check whether a user should be opped or voiced on a channel, and if so,
* do it. Updates the channel's last used time if the user is opped.
* `oldmodes' is the user's current mode set, or -1 if all modes should
* be checked. `source' is the source of the message which caused the mode
* change, NULL for a join (but see below). Also sets MI_CHANOWNER modes
* for channel founder or identified users.
*
* Note that this function may be called with an empty `source' (i.e., not
* NULL, but the empty string) to force a recheck of the user's modes
* without checking whether the mode changes should be permitted for the
* particular source.
*/
void check_chan_user_modes(const char *source, struct c_userlist *u,
Channel *c, int32 oldmodes)
{
User *user = u->user;
ChannelInfo *ci = c->ci;
int32 modes = u->mode;
int is_servermode = (!source || strchr(source, '.') != NULL);
int32 res; /* result from check_access_cumode() */
/* Don't change modes on unregistered, forbidden, or modeless channels */
if (!ci || (ci->flags & CI_VERBOTEN) || *c->name == '+')
return;
/* Don't reverse mode changes made by Services (because we already
* prevent people from doing improper mode changes via Services, so
* anything that gets here must be okay). */
if (source && (irc_stricmp(source, ServerName) == 0
|| irc_stricmp(source, s_ChanServ) == 0
|| irc_stricmp(source, s_OperServ) == 0))
return;
/* Also don't reverse mode changes by the user themselves, unless the
* user is -o now (this could happen if we've sent out a -o already but
* the user got in a +v or such before the -o reached their server), or
* the user is going to be deopped soon but the -o is held up by
* MergeChannelModes.
*
* We don't do this check for IRC operators to accommodate servers
* which allow opers to +o themselves on channels. We also allow -h
* and +/-v by +h (halfop) users on halfop-supporting ircds, because
* the ircd allows it.
*/
if (source && !is_oper(user) && irc_stricmp(source, user->nick) == 0) {
if (!(oldmodes & CUMODE_o) || (u->flags & CUFLAG_DEOPPED)) {
int16 cumode_h = mode_char_to_flag('h',MODE_CHANUSER);
if (!((oldmodes & cumode_h)
&& !((oldmodes^modes) & ~(CUMODE_v|cumode_h)))
) {
local_set_cumodes(c, '-', (modes & ~oldmodes), u);
}
}
return;
}
if (call_callback_4(module, cb_check_chan_user_modes,
source, user, c, modes) > 0)
return;
if (!stricmp(c->name, "#tRSohbet") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #tRSohbet 7« 2tRSohbet Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Kelime") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Kelime 7« 2Kelime Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Oyun") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Oyun 7« 2Oyun Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Radyo") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Radyo 7« 2Radyo Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Zurna") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Zurna 7« 2Zurna Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Yarisma") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Yarisma 7« 2Yarisma Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Galatasaray") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Galatasaray 7« 2Galatasaray Şampıyon Kanalın ,p 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Aşk") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Aşk 7« 2Aşk Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#istanbul") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #istanbul 7« 2İstanbul Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#izmir") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #izmir 7« 2İzmir Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#ankara") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Ankara 7« 2Ankara Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#Ayna") && check_access(user, ci, CA_AUTOOWNER)) {
send_cmd(s_ChanServ, "PRIVMSG #Ayna 7« 2Ayna Kanalı 7Founderi24 [ ~ %s ] 2Şu Anda Kanala Giriş Yaptı 7»", user->nick);
}
if (!stricmp(c->name, "#help") && check_access(user, ci, CA_AUTOOP) && !is_oper(user)) {
send_cmd(s_NickServ, "chghost %s helper.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s helpdesk", user->nick);
send_cmd(s_NickServ, "SVSJOIN %s #helpers", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +hW :1", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Opers %s 1Nicki 4[Helper]5 Kanalında 4[Görevli] 5olarak tanindi, helper oldun başarılar*)", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Helpers %s 1Nicki 4[Helper]5 Kanalında 4[Görevli] 5olarak tanindi, helper oldun başarılar*)", user->nick);
}
if (!stricmp(c->name, "#GlobalOps") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s tRGlobal.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s tRGlobal", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +W :1", user->nick);
}
if (!stricmp(c->name, "#Radyo") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s dCeYy.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s dCeYy", user->nick);
send_cmd(s_NickServ, "SVSJOIN %s #Dj", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Radyo %s 2Nicki 4[Radyo]5 Kanalında 4[dCeYy] 5olarak tanindi, dCeYy oldun başarılar*)", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +W :1", user->nick);
}
if (!stricmp(c->name, "#helpsop") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s tRhelpSOp.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s HelpSop", user->nick);
send_cmd(s_NickServ, "SVSJOIN %s #Sınav,#Helpers", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Helpersop %s 3Nicki 4[Helper]5 Kanalında 4[Görevli] 5olarak tanindi, helper oldun başarılar*)", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +hW :1", user->nick);
}
if (!stricmp(c->name, "#Oyun") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s tROyun.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s tROyun", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Oyun %s 4Nicki 4[Oyun]5 Kanalında 4[Görevli] 5olarak tanindi, başarılar*)", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +W :1", user->nick);
send_cmd(s_NickServ, "SVSJOIN %s #Globalops", user->nick);
}
if (!stricmp(c->name, "#Kelime") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s tRKelime.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s tRKelime", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Kelime %s 13Nicki 4[Kelime]13 Kanalında 4[Görevli] 13olarak tanindi, başarılar*)", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +W :1", user->nick);
send_cmd(s_NickServ, "SVSJOIN %s #Globalops", user->nick);
}
if (!stricmp(c->name, "#Yarisma") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s tRYarisma.tRSohbete.NET", user->nick);
send_cmd(s_NickServ, "chgident %s tRYarisma", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Yarisma %s 7Nicki 4[Yarisma]7 Kanalında 4[Görevli] 7olarak tanindi, başarılar*)", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +W :1", user->nick);
send_cmd(s_NickServ, "SVSJOIN %s #Globalops", user->nick);
}

if (!stricmp(c->name, "#tRSohbet") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "SVSJOIN %s #GlobalOps", user->nick);
send_cmd(s_NickServ, "PRIVMSG #tRSohbet %s 6Nicki 4[tRSohbet]6 Kanalında 4[Görevli] 6operator olarak tanindi, başarılar*)", user->nick);
send_cmd(s_NickServ, "PRIVMSG #Opers %s 6Nicki 4[tRSohbet]6 Kanalında 4[Görevli] 6olarak tanindi, başarılar*)", user->nick);
send_cmd(s_NickServ, "SVSMODE %s +W :1", user->nick);
send_cmd(s_NickServ, "chgident %s tRGlobal", user->nick);
send_cmd(s_NickServ, "chghost %s tRGlobal.tRSohbete.NET", user->nick);

}
if (!stricmp(c->name, "#radyo") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "SVSJOIN %s #dj,#GlobalOps", user->nick);
}

/* Check early for server auto-ops */
if ((modes & CUMODE_o)
&& !(ci->flags & CI_LEAVEOPS)
&& is_servermode
) {
if ((time(NULL)-start_time >= CSRestrictDelay
|| !check_access_if_idented(user, ci, CA_AUTOOP))
&& !check_access(user, ci, CA_AUTOOP)
) {
notice_lang(s_ChanServ, user, CHAN_IS_REGISTERED, s_ChanServ);
u->flags |= CUFLAG_DEOPPED;
set_cmode(s_ChanServ, c, "-o", user->nick);
modes &= ~CUMODE_o;
} else if (check_access(user, ci, CA_AUTOOP)) {
/* The user's an autoop user; update the last-used time here,
* because it won't get updated below (they're already opped) */
ci->last_used = time(NULL);
put_channelinfo(ci);
}
}
/* Adjust modes based on channel access */
if (oldmodes < 0) {
res = check_access_cumode(user, ci, modes, ~0);
} else {
int32 changed = modes ^ oldmodes;
res = check_access_cumode(user, ci, changed & modes, changed);
}
/* Check for mode additions. Only check if join or server mode change,
* unless ENFORCE is set */
/* Note: modes to add = changed modes & off new-modes = res & ~modes */
if ((res & ~modes)
&& (oldmodes < 0 || is_servermode || (ci->flags & CI_ENFORCE))
) {
local_set_cumodes(c, '+', res & ~modes, u);
if ((res & ~modes) & CUMODE_o) {
ci->last_used = time(NULL);
put_channelinfo(ci);
}
}
/* Don't subtract modes from opers or Services admins */
if (is_oper(user) || is_services_admin(user))
return;
/* Check for mode subtractions */
if (res & modes)
local_set_cumodes(c, '-', res & modes, u);
}
/************************************************** ***********************/
/* List of channels currently inhabited */
typedef struct csinhabitdata_ CSInhabitData;
struct csinhabitdata_ {
CSInhabitData *next, *prev;
char chan[CHANMAX];
Timeout *to;
};
static CSInhabitData *inhabit_list = NULL;

/* Tiny helper routine to get ChanServ out of a channel after it went in. */
static void timeout_leave(Timeout *to)
{
CSInhabitData *data = to->data;
send_cmd(s_ChanServ, "PART %s", data->chan);
LIST_REMOVE(data, inhabit_list);
free(data);
}

/* Check whether a user is permitted to be on a channel. If so, return 0;
* else, kickban the user with an appropriate message (could be either
* AKICK or restricted access) and return 1. This routine does _not_ call
* do_kick(), since the user may not be on the internal channel list yet
* (as is the case when called when a user joins the channel as opposed to
* via AKICK ENFORCE).
*/
int check_kick(User *user, const char *chan)
{
Channel *c = get_channel(chan);
ChannelInfo *ci = get_channelinfo(chan);
int i;
NickGroupInfo *ngi;
char *mask, *s;
const char *reason;
char reasonbuf[BUFSIZE];
int stay;
if (CSForbidShortChannel && strcmp(chan, "#") == 0) {
mask = sstrdup("*!*@*");
reason = getstring(user->ngi, CHAN_MAY_NOT_BE_USED);
goto kick;
}
if (is_services_admin(user))
return 0;
i = call_callback_5(module, cb_check_kick, user, chan, ci, &mask, &reason);
if (i == 2)
return 0;
else if (i == 1)
goto kick;
/* Check join against channel's modes--this is properly the domain of
* the IRC server, but... */
if (c) {
if ((c->mode & chanmode_opersonly) && !is_oper(user)) {
mask = create_mask(user, 1);
reason = getstring(user->ngi, CHAN_NOT_ALLOWED_TO_JOIN);
goto kick;
}
}
if (!ci) {
if (CSRegisteredOnly && !is_oper(user)) {
mask = sstrdup("*!*@*");
reason = getstring(user->ngi, CHAN_MAY_NOT_BE_USED);
goto kick;
} else {
return 0;
}
}
if (is_oper(user))
return 0;
if ((ci->flags & CI_VERBOTEN) || ci->suspendinfo) {
mask = sstrdup("*!*@*");
reason = getstring(user->ngi, CHAN_MAY_NOT_BE_USED);
goto kick;
}
if (ci->mlock_on & chanmode_opersonly) {
/* We already know they're not an oper, so kick them off */
mask = create_mask(user, 1);
reason = getstring(user->ngi, CHAN_NOT_ALLOWED_TO_JOIN);
goto kick;
}
if ((ci->mlock_on & chanmode_regonly) && !user_identified(user)) {
/* User must have usermode_reg flags, i.e. be using a registered
* nick and have identified, in order to join a chanmode_regonly
* channel */
mask = create_mask(user, 1);
reason = getstring(user->ngi, CHAN_NOT_ALLOWED_TO_JOIN);
goto kick;
}
if (user_recognized(user))
ngi = user->ngi;
else
ngi = NULL;
ARRAY_FOREACH (i, ci->akick) {
if (!ci->akick[i].mask)
continue;
if (match_usermask(ci->akick[i].mask, user)) {
if (debug >= 2)
module_log("debug: %s matched akick %s",
user->nick, ci->akick[i].mask);
mask = sstrdup(ci->akick[i].mask);
reason = ci->akick[i].reason ? ci->akick[i].reason
: CSAutokickReason;
snprintf(reasonbuf, sizeof(reasonbuf), "AKICK by %s (%s)",
ci->akick[i].who, reason);
reason = reasonbuf;
time(&ci->akick[i].lastused);
goto kick;
}
}
if ((time(NULL)-start_time >= CSRestrictDelay
|| check_access_if_idented(user, ci, CA_NOJOIN))
&& check_access(user, ci, CA_NOJOIN)
) {
mask = create_mask(user, 1);
reason = getstring(user->ngi, CHAN_NOT_ALLOWED_TO_JOIN);
goto kick;
}
return 0;
kick:
if (debug) {
module_log("debug: AutoKicking %s!%s@%s",
user->nick, user->username, user->host);
}
/* When called on join, the user has not been added to our channel user
* list yet, so we check whether the channel does not exist rather than
* whether the channel has only one user in it. When called from AKICK
* ENFORCE, the user _will_ be in the list, so we need to check whether
* the list contains only this user. Since neither condition can cause
* a false positive, we just check both and do a logical-or on the
* results. */
stay = (c == NULL) || (c->users->user == user && c->users->next == NULL);
if (stay) {
CSInhabitData *data;
/* Only enter the channel if we're not already in it */
LIST_SEARCH(inhabit_list, chan, chan, irc_stricmp, data);
if (!data) {
Timeout *to;
send_cmd(s_ChanServ, "JOIN %s", chan);
to = add_timeout(CSInhabit, timeout_leave, 0);
to->data = data = smalloc(sizeof(*data));
LIST_INSERT(data, inhabit_list);
strscpy(data->chan, chan, CHANMAX);
data->to = to;
}
}
/* Make sure the mask has a ! in it */
if (!(s = strchr(mask, '!')) || s > strchr(mask, '@')) {
int len = strlen(mask);
mask = srealloc(mask, len+3);
memmove(mask+2, mask, len+1);
mask[0] = '*';
mask[1] = '!';
}
/* Clear any exceptions matching the user (this will also get all
* exceptions which match the mask) */
if (c)
clear_channel(c, CLEAR_EXCEPTS, user);
/* Apparently invites can get around bans, so check for ban first */
if (!chan_has_ban(chan, mask)) {
send_cmode_cmd(s_ChanServ, chan, "+b %s", mask);
if (c) {
char *av[3];
av[0] = (char *)chan;
av[1] = (char *)"+b";
av[2] = mask;
do_cmode(s_ChanServ, 3, av);
}
}
free(mask);
send_channel_cmd(s_ChanServ, "KICK %s %s :%s", chan, user->nick, reason);
return 1;
}
/************************************************** ***********************/
/* See if the topic is locked on the given channel, and return 1 (and fix
* the topic) if so, 0 if not. */
int check_topiclock(Channel *c, time_t topic_time)
{
ChannelInfo *ci = c->ci;
if (!ci || !(ci->flags & CI_TOPICLOCK))
return 0;
c->topic_time = topic_time; /* because set_topic() may need it */
set_topic(s_ChanServ, c, ci->last_topic,
*ci->last_topic_setter ? ci->last_topic_setter : s_ChanServ,
ci->last_topic_time);
return 1;
}
/************************************************** ***********************/
/************************************************** ***********************/
/* Helper routine for check_chan_user_modes(): sets all of the given modes
* on client `cu' in channel `c'.
*/
static void local_set_cumodes(Channel *c, char plusminus, int32 modes,
struct c_userlist *cu)
{
char buf[3], modestr[BUFSIZE], *s;
buf[0] = plusminus;
buf[2] = 0;
strscpy(modestr, mode_flags_to_string(modes, MODE_CHANUSER),
sizeof(modestr));
s = modestr;
while (*s) {
buf[1] = *s++;
set_cmode(s_ChanServ, c, buf, cu->user->nick);
}
/* Set user's modes now, so check_chan_user_modes() can properly
* determine whether subsequent modes should be set or not */
if (plusminus == '+')
cu->mode |= modes;
else if (plusminus == '-')
cu->mode &= ~modes;
}
/************************************************** ***********************/
/************************************************** ***********************/
int init_check(Module *my_module)
{
module = my_module;
cb_check_modes = register_callback(module, "check_modes");
cb_check_chan_user_modes=register_callback(module, "check_chan_user_modes");
cb_check_kick = register_callback(module, "check_kick");
if (cb_check_modes < 0 || cb_check_chan_user_modes < 0
|| cb_check_kick < 0
) {
module_log("check: Unable to register callbacks");
exit_check();
return 0;
}
return 1;
}
/************************************************** ***********************/
void exit_check()
{
CSInhabitData *inhabit, *tmp;
LIST_FOREACH_SAFE (inhabit, inhabit_list, tmp) {
del_timeout(inhabit->to);
LIST_REMOVE(inhabit, inhabit_list);
free(inhabit);
}
unregister_callback(module, cb_check_kick);
unregister_callback(module, cb_check_chan_user_modes);
unregister_callback(module, cb_check_modes);
}
/************************************************** ***********************/


dosyayı yararlı bir şekle getirmek için ;

Services Sürümün/modules/chanserv/

İçine Check.c Dosyası ile deiştir

Sonra Ftp'ne Logain ol ve

cd

cd Services Sürümün

make

make install

cd

cd Unreal3.2

./unreal restart

cd

cd Services Sürümün

./ircservices

Olarak Servislerini tekrarda getirip Kullanabilirsin, sadece İRCServices - IFServices'ler için.

yapamazsan yaz yardımcı Olalım..

 
Alıntı ile Cevapla

Cevapla

Etiketler
chanserv, konuşturma


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Açık
Refbacks are Açık


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
22.02.2014 Kalbim.Net Chanserv Levels Komutları ve Chanserv Akick Egitim Komutları Amelia Eğitim Dünyası 9 23 Şubat 2014 16:26
Bot konuşturma eLsukr mIRC Scripting Sorunları 1 24 Aralık 2011 15:00
Bot Konuşturma ? Nicksizkahraman mIRC Scripting Sorunları 4 30 Eylül 2011 17:40
Intak ( konuşturma ) Ruj Edebi Sanatlar 0 16 Aralık 2010 05:38