summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/prestartup12
-rw-r--r--scripts/startup11
2 files changed, 16 insertions, 7 deletions
diff --git a/scripts/prestartup b/scripts/prestartup
index 272cd90..16054f0 100644
--- a/scripts/prestartup
+++ b/scripts/prestartup
@@ -1,6 +1,12 @@
+ Set important server message handlers first.
+ 004 is where we know we're connected and can start joining shit.
+!alias !eval !leettail 150%s
+!alias !004 !eval %~/scripts/startup
+ 436 is nick collision.
+!alias !433 !nick %m%r%r%r
+!alias !436 !nick %m%r%r%r
!nick SegFault
-!raw user asdf seg fault :segfault
-!builtin lobotomy 0
-!builtin amnesia 0
+!raw user epoch epoch epoch :epoch
+
!raw PASS wrongpassword
!raw SERVER nope.segfault.allowed.org :testing
diff --git a/scripts/startup b/scripts/startup
index 29e9202..21ed886 100644
--- a/scripts/startup
+++ b/scripts/startup
@@ -9,12 +9,15 @@
!leettail 56#cmd:%~/files/cmd_out
!leettail 56#cmd:%~/files/sh_out
!raw join #default
+
!alias !tail !leettail 08%%s
-!alias !taildir !ec find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw JOIN '$c;echo '!raw TOPIC '$c' :'$c;done
+#top one joins too.
+ !alias !taildir !ec find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw JOIN '$c;echo '!raw TOPIC '$c' :'$c;done
+ !alias !taildir !ec find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw TOPIC '$c' :'$c;done
+#!alias !taildir !c find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw TOPIC '$c' :'$c;done > /service/log2irc/scripts/taildir;echo '!lobotomy' >> /service/log2irc/scripts/taildir
+!alias !taildir !c find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw TOPIC '$c' :'$c;done > /service/log2irc/scripts/taildir
!taildir /var/log/toirc/
-
!tail #default:%~/files/default
-!raw join #twit
-!leettail 24#twit:%~/files/twit_out
+
!eval %~/files/useraliases