Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

westor westor7

🏠
Working from home
View GitHub Profile
@westor7
westor7 / cmd_snotice.c
Last active May 12, 2022
/SNOTICE UnrealIRCD 6 module
View cmd_snotice.c
#include "unrealircd.h"
#define MSG_SNOTICE "SNOTICE"
CMD_FUNC(cmd_snotice);
ModuleHeader MOD_HEADER
= {
"third/snotice",
"1.0",
@westor7
westor7 / adi_channel_prefix_color.mrc
Created Jan 7, 2022
(AdiIRC) Colorize Nickname Prefix On Channel Messages for valek
View adi_channel_prefix_color.mrc
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 / repeat_warner.mrc
Created Dec 26, 2021
Repeat Text Warning (3 times) for metin
View repeat_warner.mrc
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 / jclones.mrc
Last active Nov 28, 2021
Identical Clones Kick/Ban for Cappuccino (Release_)
View jclones.mrc
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 / invite_alert.js
Last active Oct 13, 2021
KiwiIRC on invite alert for Stanley
View invite_alert.js
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 / nickserv_identify.js
Last active Jun 12, 2021
KiwiIRC enter identify password if ask for on connect for REDHISPANA
View nickserv_identify.js
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 / tagmsg_statusbar.mrc
Last active May 19, 2022
Typing Indicators on AdiIRC Statusbar for Koragg
View tagmsg_statusbar.mrc
; --- 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 / check_buildin.mrc
Created Mar 22, 2021
Check for AdiIRC build-in Identifier/Command for Koragg
View check_buildin.mrc
ON *:START: { get_buildin }
ON *:SOCKOPEN:adiirc_buildin_identifiers: {
if ($sockerr) { 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 / badwords.mrc
Last active Mar 20, 2021
Badwords Protection for Kendy
View badwords.mrc
; --- 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 / wmm.mrc
Created Aug 4, 2017
WESTOR Module Manager
View wmm.mrc
/*
########################################
# WESTOR Module Manager #
# v4.0 - (01/08/2017) #
# Thanks Supporters #
########################################