[NEW!] OIS- Operator Information System for IRCServices

The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.

Moderator: Supporters

Locked
HITMAN
Posts: 6
Joined: Fri Feb 09, 2007 3:43 am

[NEW!] OIS- Operator Information System for IRCServices

Post by HITMAN »

Operator Information System
-
/* Constructive: Cihan SAVSAR & Emre POLAT | Transtlation: HITMAN */
-
* You have to use IRCServices.
* Before start, take your databases.. (reserve it)
* Be careful for lines..
* Try to use "pico -w"
* Use editplus for editing. (For preventing errors..)
-

# NICKSERV
# <main.c>
# cd ircservices*
# cd modules/nickserv
# pico -w main.c

* System for your admins/irc operators..
* When they use DROP, FORBID, SUSPEND, UNSUSPEND, GETPASS operation, logs will be send #ircmedia channel...

- DROPNICK

Code: Select all

notice_lang(s_NickServ, u, NICK_X_DROPPED, nick);
find this line and add

Code: Select all

send_cmd(s_NickServ, "PRIVMSG #ircmedia DROP-NICK: * %s * dropped, Oper nick: * %s *", nick, u->nick);
this code..

- GETPASS

Code: Select all

notice_lang(s_NickServ, u, NICK_GETPASS_PASSWORD_IS, nick, pass);
find this line and add

Code: Select all

send_cmd(s_NickServ, "PRIVMSG #ircmedia NICK-GETPASS: * %s * getpassed, OPER nick: * %s *", nick, u->nick);
this code..

- FORBID

Code: Select all

notice_lang(s_NickServ, u, NICK_FORBID_SUCCEEDED, nick);
Find this line and add

Code: Select all

send_cmd(s_NickServ, "PRIVMSG #ircmedia NICK-FORBID: * %s * forbidden,  Oper nick: * %s *", nick, u->nick);
This code..

- SUSPEND

Code: Select all

notice_lang(s_NickServ, u, NICK_SUSPEND_SUCCEEDED, nick);
Satırını bulunuz ve hemen altına

Code: Select all

send_cmd(s_NickServ, "PRIVMSG #ircmedia NICK-SUSPEND: * %s * suspended, Oper nick: * %s *", nick, u->nick);
Kodunu ekleyiniz.

- UNSUSPEND

Code: Select all

notice_lang(s_NickServ, u, NICK_UNSUSPEND_SUCCEEDED, nick);
Satırını bulunuz ve hemen altına

Code: Select all

send_cmd(s_NickServ, "PRIVMSG #ircmedia NICK-UNSUSPEND: * %s * unsuspended, Oper nick: * %s *", nick, u->nick);
Kodunu ekleyiniz, kaydedip çıkınız.
--------------------------------------------------------------

# NICKSERV SET
# <set.c>
# cd ircservices*
# cd modules/nickserv
# pico -w set.c


- SET PASSWORD

Code: Select all

notice_lang(s_NickServ, u, NICK_SET_PASSWORD_CHANGED);
Find this line and add

Code: Select all

send_cmd(s_NickServ, "PRIVMSG #ircmedia NICK-SET-PASSWORD: * %s * changed pass, Oper nick: * %s *", ni->nick, u->nick);
this code.

###########################################################################################################

# CHANSERV
# <main.c>
# cd ircservices*
# cd modules/chanserv
# pico -w main.c


- DROP <channel>

Code: Select all

notice_lang(s_ChanServ, u, CHAN_DROPPED, chan);
Find this line and add

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-DROPPED: * %s * dropped, Oper nick: * %s *", chan, u->nick);
this code..

- GETPASS <channel>

Code: Select all

notice_lang(s_ChanServ, u, CHAN_GETPASS_PASSWORD_IS,
	    chan, ci->founderpass);
find this line and

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-GETPASS: * %s * channel getpassed, Oper nick: * %s *", chan, u->nick);
add this code underside it..

- FORBID <channel>

Code: Select all

notice_lang(s_ChanServ, u, CHAN_FORBID_SUCCEEDED, chan);
Find this line and add under of this line

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-FORBID: * %s * channel forbidden, Oper nick: * %s *", chan, u->nick);
this code..

- SUSPEND <channel>

Code: Select all

notice_lang(s_ChanServ, u, CHAN_SUSPEND_SUCCEEDED, chan);
find this line and add

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-SUSPEND: * %s * channel suspended, Oper nick: * %s *", chan, u->nick);	
this code under of it.

- UNSUSPEND <channel>

Code: Select all

notice_lang(s_ChanServ, u, CHAN_UNSUSPEND_SUCCEEDED, chan);
Find this line and add

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-UNSUSPEND: * %s * unsuspended, Oper nick: * %s *", chan, u->nick);
this code..

###########################################################################################################

# CHANSERV SET
# <set.c>
# cd ircservices*
# cd modules/chanserv
# pico -w set.c


- SET <channel> PASSWORD

Code: Select all

notice_lang(s_ChanServ, u, CHAN_PASSWORD_CHANGED, ci->name);
Find this code and add

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-SET-PASSWORD: * %s * channel pass changed, Oper nick: * %s *", ci->name, u->nick);
this code under of it.

- SET <channel> FOUNDER

Code: Select all

notice_lang(s_ChanServ, u, CHAN_FOUNDER_CHANGED, ci->name, param);
Find this line and add

Code: Select all

send_cmd(s_ChanServ, "PRIVMSG #ircmedia CHAN-SET-FOUNDER: * %s * channels founder changed, Oper nick: * %s *", ci->name, u->nick);
this code under of it..

#########################################################

* You must now do,

- make
- make install
- ./ircservices

#########################################################

I hope this system help you...
you can say your comments here..

thanks..
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

As a word of warning, if like Anope and Unreal, IRCServices dont support source modifications then it is strongly advised not to make the above changes unless you are happy with no support from the IRCServices team.

Alternativly the best thing to do would be to ask the team if theyll still support you afterwards. At least if you ask first if you lose support for source modification then youll be able to judge whether you can make the changes or not.

Thats not saying you cant make the changes just you may prefer not to lose support if you would. Which is why i say ask first.
Locked