|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
I tested this against their MOTD that has some lines with leading spaces in front of the logo. If you don't want the timestamp on those lines while timestamping is enabled, change the -st to -s raw 372:*:{
if (!$regex($parms,\s\s)) { echo 3 -st $3- }
else {
var %text $replace($parms,$chr(32),$chr(160)) , %r $regex(junk,$parms,^(\S+)\s+(-))
var %text2 $mid(%text,$calc(2+$regml(junk,2).pos))
if (%text2) echo 4 -st %text2
else echo 2 -st $3-
}
haltdef
}
|
|
|
|
Joined: Aug 2018
Posts: 15
Pikka bird
|
OP
Pikka bird
Joined: Aug 2018
Posts: 15 |
Sorry, I realized only now that this code works only on Mindforge, can you help me again?
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
What does 'not work' mean? Does it do 'nothing' or 'wrong thing'? Nothing in my code referenced any $network name, so if it doesn't 'work' at another network, it could be not sending the MOTD, or using something besides 372 to send the MOTD. You can also try temporarily flooding your @debug window to snoop at the hex content of messages going to/from the server. If the 44/52 colors don't contrast against your background, you can change them. Typing /debugghex will begin logging all traffic to/from the $server attached to that window, so do that before reconnecting to see the handshaking. alias debugghex { window -ze2Dj5000k @debug | titlebar @debug active= $+ $scid($window(@debug).cid).network logging: $addtok($gettok($window(@debug).titlebar,3-,32),$network,32) | debug -pir44o52 @debug $!+([,$time,],[,$network,] $!debuggsubhex($ $+ parms)) } ; Raccoon's altered by maroon
alias debuggsubhex { return $1 hex: $regsubex(junk,$1,/(.)/gu,$base($asc(\1),10,16) $+ $chr(32)) }
|
|
|
|
Joined: Aug 2018
Posts: 15
Pikka bird
|
OP
Pikka bird
Joined: Aug 2018
Posts: 15 |
This is what I see on another server: 08:26] ::: rbx3.simosnap.com message of the day
[08:26] ****************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] __ _ __ _____ __ ___
[08:26] / _\(_)_ __ ___ ___ ___ /\ \ \__ _ _ __ \_ \/__\ / __\
[08:26] \ \ | | '_ ` _ \ / _ \/ __| / \/ / _` | '_ \ / /\/ \// / /
[08:26] _\ \| | | | | | | (_) \__ \/ /\ / (_| | |_) | /\/ /_/ _ \/ /___
[08:26] \__/|_|_| |_| |_|\___/|___/\_\ \/ \__,_| .__/ \____/\/ \_/\____/
[08:26] |_|
[08:26] __ _ _
[08:26] /\ \ \___| |___ _____ _ __| | __
[08:26] / \/ / _ \ __\ \ /\ / / _ \| '__| |/ /
[08:26] / /\ / __/ |_ \ V V / (_) | | | <
[08:26] \_\ \/ \___|\__| \_/\_/ \___/|_| |_|\_\
[08:26]
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Benvenuti in SimosNap IRC Network.
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Visita il sito ufficiale della network: http://www.simosnap.org/
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Per l'utilizzo dei server e dei servizi di SimosNap IRC Network l'utente DEVE
[08:26] conoscere e rispettare il regolamento e i termini stabiliti dallo Staff.
[08:26] L'utente e' quindi pregato di prenderne visione all'indirizzo:
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] http://www.simosnap.org/rules/
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Puoi visualizzare il regolamento in ogni momento digitando /rules.
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Procedendo si ritiene fatta accettazione di tali termini, chi non fosse in
[08:26] accordo con tali termini e' pregato di non usare questo servizio.
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] In questo Network la scelta degli operatori e' fatta dallo staff e non
[08:26] mediante test o simili. L'unico modo di diventare operatore, nel caso ce ne
[08:26] fosse il bisogno, e' fare parte da tempo degli assidui del Network e essere
[08:26] ritenuti dallo staff in grado di tale incarico. Pertanto e' INUTILE CHIEDERE LE
[08:26] FLAG DA OPERATORE O HELPER !!!
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] SimosNap IRC Network Staff
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Staff:
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] NetworkAdmins:
[08:26] Simos (admin@simosnap.org)
[08:26] DjGolia (djgolia@simosnap.org)
[08:26] Pipps (pipps@simosnap.org)
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Server Admins:
[08:26] Digita il comando /quote admin
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Porte disponibili:
[08:26] 6666, 6667, 6668, 6669: Connessioni normali
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] SSL:
[08:26] 9999
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] Round Robin per la connessione al network:
[08:26] irc.simosnap.com: Connessioni IPV4
[08:26] irc6.simosnap.com: Connessioni IPV6
-
* /echo: insufficient parameters (line 798, Kte-Dyn.mrc)
-
[08:26] -
[08:26] *******************************************************************************
[08:26] ::: End of message of the day.
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
Is there another public network where this fails? Perhaps one that doesn't ban me as part of a spammer Z-line range? I'm not going to try appealing via email, just so I can see what happens when trying to connect.
Also, your post shows a bunch of error messages, so it would have been helpful to tell which line is 798
|
|
|
|
Joined: Aug 2018
Posts: 15
Pikka bird
|
OP
Pikka bird
Joined: Aug 2018
Posts: 15 |
In any server.
Last edited by DTRSTRMNM; 11/03/19 10:30 AM.
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
This isn't an answer. The one site you pasted won't let me connect, and I sampled several other websites and couldn't find one which caused my code to generate these echoes. And you didn't say what's on the line number causing your error.
|
|
|
|
|