[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] Unreal3.2.x versionları için yapılmış olan bildirimlerinin, Unreal4 için düzenlenmiş hâlidir.
Düzenlemeleri gösterecek olursak..
satırının altına
Kod:
#define KANAL "#opers"
aChannel *chptr;
Ekleyelim..
Kod:
sendto_snomask_global(SNO_OPER,
"%s (%s@%s) [%s] is now an operator",
sptr->name, sptr->user->username, sptr->local->sockhost,
parv[1]);
satırının altına;
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :%s (%s@%s) [%s] is now an operator", chptr->name, sptr->user->username, sptr->local->sockhost,
parv[1]);
Ekleyelim..
Kod:
(SNO_OPER, "Failed OPER attempt by %s (%s@%s) [unknown oper]",
sptr->name, sptr->user->username, sptr->local->sockhost);
altına..
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :Failed OPER attempt by %s (%s@%s) [unknown oper]",
chptr->chname, sptr->name, sptr->user->username, sptr->local->sockhost);
Ekleyelim..
Kod:
(SNO_OPER, "Failed OPER attempt by %s (%s@%s) using UID %s [host doesnt match]",
sptr->name, sptr->user->username, sptr->local->sockhost, name);
satırının altına..
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s : Failed OPER attempt by %s (%s@%s) using UID %s [host doesnt match] ",
chptr->chname, sptr->name, sptr->user->username, sptr->local->sockhost, name);
ekleyelim..
Kod:
sendto_snomask_global
(SNO_OPER, "Failed OPER attempt by %s (%s@%s) using UID %s [FAILEDAUTH]",
sptr->name, sptr->user->username, sptr->local->sockhost, name);
Satırının altına..
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :Failed OPER attempt by %s (%s@%s) using UID %s [FAILEDAUTH]",
chptr->chname, sptr->name, sptr->user->username, sptr->local->sockhost, name);
Ekleyelim..
Kod:
(SNO_OPER, "Failed OPER attempt by %s (%s@%s) [lacking modes '%s' in oper::require-modes]",
sptr->name, sptr->user->username, sptr->local->sockhost, get_modestr(operblock->require_modes & ~sptr->umodes));
satırının altına...
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s : Failed OPER attempt by %s (%s@%s) [lacking modes '%s' in oper::require-modes] ",
chptr->chname, sptr->name, sptr->user->username, sptr->local->sockhost, get_modestr(operblock->require_modes & ~sptr->umodes));
Ekleyelim..
Kod:
(SNO_OPER, "Failed OPER attempt by %s (%s@%s) [oper::operclass does not exist: '%s']",
sptr->name, sptr->user->username, sptr->local->sockhost, operblock->operclass);
Satırının altına...
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s : Failed OPER attempt by %s (%s@%s) [oper::operclass does not exist: '%s']",
chptr->chname, sptr->name, sptr->user->username, sptr->local->sockhost, operblock->operclass);
ekleyelim...
Kod:
(SNO_OPER, "Failed OPER attempt by %s (%s@%s) using UID %s [maxlogins reached]",
sptr->name, sptr->user->username, sptr->local->sockhost, name);
satırının altına...
Kod:
if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s : Failed OPER attempt by %s (%s@%s) using UID %s [maxlogins reached]",
chptr->chname, sptr->name, sptr->user->username, sptr->local->sockhost, name);
ekleyelim...
Extra olarak;
Kod:
if (do_cmd(cptr, sptr, "JOIN", 3, chans) == FLUSH_BUFFER)
return FLUSH_BUFFER;
satırının altına
Kod:
#define OKU "../conf/oper.motd"
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(OKU, "r");
if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
sendto_one(sptr, ":OPERMOTD PRIVMSG %s :%s", sptr->name, buf);
}
}
Ekleyiniz..
unrealircd/conf/ klasörünün içeriğine
oper.motd şeklinde belge oluşturarak, operlere bildirim mesajı yollayabilirsiniz.
unrealircd-4.0.x ana dizininde
make ve
make install komutunu uyguladıktan sonra,
sunucumuza
./unrealircd rehash yapıyoruz.
Kod:
<Monitor> KelebekvSohbet33338 (LaZ@xx) [dEathLeSs] is now an operator
Kod:
<Monitor> Failed OPER attempt by KelebekvSohbet33336 (LaZ@xx) using UID dEathLeSs [FAILEDAUTH]
Kod:
<Monitor> Failed OPER attempt by KelebekvSohbet33316 (LaZ@xx) [unknown oper]
Kod:
<Monitor> Failed OPER attempt by KelebekvSohbet33362 (LaZ@xx) using UID dEathLeSs [maxlogins reached]