I got bored and decided to mess around with on snotice for a bit, I ended up making a basic ConnectServ similair to the one that comes with NeoStats..
On load it will ask for a log channel: #services for example... and also a default server: irc.quakenet.org for example.... Set the log channel to private or opers only :|
And I know I shouldn't say this but I will, the bot needs to be an ircop for this to work
Also I have only tested this on unrealircd so I doubt it will work with any other IRCD but feel free to try.
Also I have left comments inside the snippet so it is easier to read, and so you can find it easier to edit colours or whatever.
;x
*any problems/fixes/additions don't hesitate to let me know.
snomasks: +cfFkvSGnNso
^^ shows kills/glines/shuns/connects/nick changes/servers
Though I thought i'd change the on load to remind you, how nice am I :)
on *:load:{
set %logchannel $$?="Choose log channel"
set %defserv $$?="Choose default server"
echo -a Log Channel Set To: %logchannel
echo -a Default Server Set To: %defserv
echo -a REMEMBER: give the bot these snomasks: +cfFkvGnNsoS
}
on 1:snotice:*:{
if ($server == %defserv) {
;CHG commands
if (changed the virtual hostname isin $1-) { msg %logchannel 10CHG:15 $1 14used /chghost on15 $7 14-=-15 $11 }
if (changed the virtual ident isin $1-) { msg %logchannel 10CHG:15 $1 14used /chgident on15 $7 14-=-15 $11 }
if (changed the GECOS isin $1-) { msg %logchannel 10CHG:15 $1 14used /chgname on15 $4 14-=-15 $10 }
;Nick Changes
if (has changed his/her nickname to isin $1-) { msg %logchannel 10Nick Change:15 $4 14-=-15 $11 }
;Connections
if (Client connecting on isin $4-) {
msg %logchannel 3Connection:15 $server 14-=-15 $9 $10
ctcp $9 version
}
if (exiting: == $5) { msg %logchannel 4Disconnection:15 $server 14-=-15 $6 $7 }
if (Client connecting at isin $4-) {
msg %logchannel 3Connection:15 $7 14-=-15 $8 $9
ctcp version $8 version
}
if (exiting == $5) { msg %logchannel 4Disconnection:15 $7 14-=-15 $8 }
;Opers
if (is now a network administrator isin $1-) { msg %logchannel 10Oper:15 $1 14is now a network admin 11(N) }
if (is now a services administrator isin $1-) { msg %logchannel 10Oper:15 $1 14is a services admin 11(a) }
if (is now a server admin isin $1-) { msg %logchannel 10Oper:15 $1 14is a server admin 11(A) }
if (is now a co administrator isin $1-) { msg %logchannel 10Oper:15 $1 14is a co admin 11(C) }
if (is now an operator isin $1-) { msg %logchannel 10Oper:15 $1 14is global operator 11(O) }
if (is now a local operator isin $1-) { msg %logchannel 10Oper:15 $1 14is local operator 11(o) }
if (Failed OPER attempt isin $1-) && ([unknown oper] isin $1-) { msg %logchannel 10Oper: 14Failed oper attempt:15 $5 14-=-15 $7- }
if (Failed OPER attempt isin $1-) && ([FAILEDAUTH] isin $1-) { msg %logchannel 10Oper: 14Failed oper attempt by15 $5 14using ID of15 $9 }
;Servers
if (Link == $4) && (is now synced isin $8-) { msg %logchannel 7Server15: $5 14is now linked to15 $7 }
if (Link denied for isin $1-) { msg %logchannel 7Server: 14Link denied for15 $7 | msg %logchannel 7-=-15 $8 $9 $10 $11 $12 $13 $14 $15 $16 | msg %logchannel 7-=-15 $17 }
if (Lost connection to isin $1-) { msg %logchannel 7Server:14 lost connection to15 $4 }
if (LocOps -- Received SQUIT isin $1-) { msg %logchannel 7Server:15 $6 7-=- 14SQUIT by15 $8 }
if (Received SQUIT isin $1-) && (Global isin $1-) { msg %logchannel 7Server:15 $8 7-=- 14SQUIT by15 $10 }
;Kill \ Kline \ Zline \ Gline \ Spamfilter add|del|match spam filter \ shun
if (received kill message isin $1-) { .timer 1 1 msg %logchannel 10Oper:14 Kill for15 $8 10-=-14 from15 $10 }
if (Permanent G:Line added isin $1-) { .timer 1 1 msg %logchannel 10Oper:14 Gline added for15 $6 10-=-15 $14 $15 14 $16- 15) }
if (removed G:line isin $1-) { msg %logchannel 10Oper:14 Gline for15 $4 14has been removed by15 $1 15) }
if (Permanent Shun added for isin $1-) { msg %logchannel 10Oper:14 Shun added for15 $6 19-=-15 $14 $15 14 $16- 15) }
if (removed Shun isin $1-) { msg %logchannel 10Oper:14 Shun for15 $4 14has been removed by15 $1 15) }
if (Spamfilter Added: isin $1-) { msg %logchannel 10Oper:14 Spamfilter added for:15 $4 10-=-14 added by15 $18 $19 }
if (removed Spamfilter isin $1-) { msg %logchannel 10Oper:14 Spamfilter for:15 $4 10-=-14 has been removed by15 $1 }
if ([Spamfilter] isin $1-) && ( matches filter isin $1-) { echo @snotice 10Oper:14 $2 10-=-Met the spamfilter for:15 $6 10-=- at $fulldate }
if (Permanent K:Line added isin $1-) { .timer 1 1 msg %logchannel 10Oper:14 Kline added for:15 $6 10-=-14 added by15 $14 $15 14 $16- 15) }
if (removed K:line isin $1-) { msg %logchannel 10Oper:14 Kline for:15 $4 14has been removed by15 $1 15) }
if (Permanent Z:Line added isin $1-) { .timer 1 1 msg %logchannel 10Oper:14 Zline added for:15 $6 10-=-14 added by15 $14 $15 14 $16- 15) }
if (removed Z:line isin $1-) { msg %logchannel 10Oper:14 Zline for:15 $4 14has been removed by15 $1 15) }
}
}
on 1:CTCPREPLY:VERSION*:/msg %logchannel 3Connection:15 $nick 14is using IRC client:15 $1-