Skip to content

Instantly share code, notes, and snippets.

View westor7's full-sized avatar
🏠
Working from home

westor westor7

🏠
Working from home
View GitHub Profile
@westor7
westor7 / wmm.mrc
Created August 4, 2017 16:41
WESTOR Module Manager
/*
########################################
# WESTOR Module Manager #
# v4.0 - (01/08/2017) #
# Thanks Supporters #
########################################
@westor7
westor7 / badwords.mrc
Last active March 20, 2021 03:03
Badwords Protection for Kendy
; --- Settings ---
alias -l badwords_chan { return #msl }
alias -l badwords_file { return badwords.db }
alias -l badwords_ban_time { return 3600 }
alias -l badwords_ban_type { return 2 }
alias -l badwords_ban_kick_message { return Do NOT use badwords here! }
; --- Settings ---
@westor7
westor7 / check_buildin.mrc
Last active April 12, 2023 19:12
Check for AdiIRC build-in Identifier/Command for Koragg
ON *:START: { get_buildin }
ON *:SOCKOPEN:adiirc_buildin_identifiers: {
if ($sockerr) { echo 4 -at Error: Could not connect to the server to retrieve adiirc build-in identifiers list! | return }
sockwrite -nt $sockname GET /projects/adiirc/wiki/Scripting_Identifiers HTTP/1.1
sockwrite -nt $sockname Host: $sock($sockname).addr
sockwrite -nt $sockname Connection: Close
sockwrite -nt $sockname $crlf
}
@westor7
westor7 / tagmsg_statusbar.mrc
Last active May 19, 2022 15:26
Typing Indicators on AdiIRC Statusbar for Koragg
; --- Settings ---
alias -l tagmsg_receive { return 1 } ; 1 = Will receive any +typing spec messages, use 0 to disable it.
alias -l tagmsg_share { return 1 } ; 1 = Will send +typing spec when you write something on editbox, 0 to disable it.
alias -l tagmsg_share_delay { return 3 } ; 3 = The seconds that client will send the typing share, default says it is 3, do not get lower than that it will be spammy.
alias -l tagmsg_position { return 5 } ; 5 = the position number , use 1 to be in 1st place top left on the statusbar or whatever number you want.
alias -l tagmsg_auto_done_secs { return 6 } ; 6 = the automatically typing=done seconds, spec says 6 is the correct here.
alias -l tagmsg_icon_file { return $envvar(windir) $+ \System32\comres.dll } ; = Use only DLL that includes icons. (example: shell32.dll), works only on Windows
alias -l tagmsg_icon_index { return 6 } ; = The $tagmsg_icon_file DLL index icon number, works only on Windows.
alias -l tagmsg_icon_size { return 2 } ; 1 = small, 2 = large, 3 = actual,
@westor7
westor7 / nickserv_identify.js
Last active June 12, 2021 21:17
KiwiIRC enter identify password if ask for on connect for REDHISPANA
kiwi.plugin('nickserv_identify', function(kiwi, log) {
kiwi.on('irc.notice', function(event, network) {
if (event.nick.toLowerCase() !== 'nickserv') { return; }
var IsLogged = network.ircClient.user.modes.has('r');
if (IsLogged) { return; }
var text = "nick pertenece a otra persona.";
@westor7
westor7 / invite_alert.js
Last active October 13, 2021 15:38
KiwiIRC on invite alert for Stanley
kiwi.plugin('invite_alert', function(kiwi, log) {
kiwi.on('irc.invite', (event, network) => {
if (document.visibilityState === "visible") {
var network = kiwi.state.getActiveNetwork();
var nick = event.nick
var chan = event.channel
//var mychans = kiwi.state.getActiveNetwork().buffers.filter((b) => b.isChannel()).map((b) => b.name);
var ask = confirm('Hey! ' + nick + ' invites you to join on ' + chan + ' channel\n\nDo you wanna join??');
@westor7
westor7 / jclones.mrc
Last active November 28, 2021 20:50
Identical Clones Kick/Ban for Cappuccino (Release_)
ON ^!*:JOIN:#: {
if (!$nick($chan,$me,@&~%)) && (o !isin $usermode) { return }
haltdef
set -l %hash_1 JCLONES_ $+ $chan
set -l %hash_2 JCLONESNICKS_ $+ $chan
set -l %nick_5chars $left($nick,5)
hinc -mu3 %hash_1 %nick_5chars 1
@westor7
westor7 / repeat_warner.mrc
Created December 26, 2021 18:11
Repeat Text Warning (3 times) for metin
ON *:TEXT:*:#: {
tokenize 32 $strip($1-)
var %hash = REPEATS_ $+ $chan
var %times = $hget(%hash,$nick $+ _TIMES)
var %last_msg = $hget(%hash,$nick $+ _LAST_MSG)
var %md5 = $md5($1-,0)
if (!%last_msg) { hadd -m %hash $nick $+ _LAST_MSG %md5 | hinc -u3 %hash $nick $+ _TIMES 1 | return }
if (%last_msg !== %md5) { hadd -m %hash $nick $+ _LAST_MSG %md5 | hadd -u3 %hash $nick $+ _TIMES 1 | return }
@westor7
westor7 / adi_channel_prefix_color.mrc
Created January 7, 2022 22:47
(AdiIRC) Colorize Nickname Prefix On Channel Messages for valek
ON *:INPUT:#: {
if (!$inpaste) && (!$ctrlenter) && ($comchar !== $left($1,1)) {
.msg $chan $1-
echo -t $chan < $+ $col_prefix($nick($chan,$me).cmode) $+ $me $+ >: $1-
halt
}
}
@westor7
westor7 / cmd_snotice.c
Last active May 12, 2022 15:28
/SNOTICE UnrealIRCD 6 module
#include "unrealircd.h"
#define MSG_SNOTICE "SNOTICE"
CMD_FUNC(cmd_snotice);
ModuleHeader MOD_HEADER
= {
"third/snotice",
"1.0",