@@ -295,7 +295,7 @@ defmodule M51.IrcConn.Handler do
295
295
end
296
296
297
297
send . ( % M51.Irc.Command {
298
- source: "server" ,
298
+ source: "server. " ,
299
299
command: numeric ,
300
300
params: [ first_param | params ]
301
301
} )
@@ -333,7 +333,7 @@ defmodule M51.IrcConn.Handler do
333
333
end )
334
334
|> Enum . join ( " " )
335
335
336
- send . ( % M51.Irc.Command { source: "server" , command: "CAP" , params: [ "*" , "LS" , caps ] } )
336
+ send . ( % M51.Irc.Command { source: "server. " , command: "CAP" , params: [ "*" , "LS" , caps ] } )
337
337
:got_cap_ls
338
338
339
339
{ "CAP" , [ "LS" | _ ] } ->
@@ -344,12 +344,12 @@ defmodule M51.IrcConn.Handler do
344
344
|> Enum . map ( fn { k , _v } -> k end )
345
345
|> Enum . join ( " " )
346
346
347
- send . ( % M51.Irc.Command { source: "server" , command: "CAP" , params: [ "*" , "LS" , caps ] } )
347
+ send . ( % M51.Irc.Command { source: "server. " , command: "CAP" , params: [ "*" , "LS" , caps ] } )
348
348
:got_cap_ls
349
349
350
350
{ "CAP" , [ "LIST" | _ ] } ->
351
351
# TODO: return sasl when relevant
352
- send . ( % M51.Irc.Command { source: "server" , command: "CAP" , params: [ "*" , "LIST" ] } )
352
+ send . ( % M51.Irc.Command { source: "server. " , command: "CAP" , params: [ "*" , "LIST" ] } )
353
353
nil
354
354
355
355
{ "CAP" , [ "REQ" , caps | _ ] } ->
@@ -366,11 +366,11 @@ defmodule M51.IrcConn.Handler do
366
366
all_caps_known = Enum . all? ( cap_atoms , fn atom -> atom != nil end )
367
367
368
368
if all_caps_known do
369
- send . ( % M51.Irc.Command { source: "server" , command: "CAP" , params: [ "*" , "ACK" , caps ] } )
369
+ send . ( % M51.Irc.Command { source: "server. " , command: "CAP" , params: [ "*" , "ACK" , caps ] } )
370
370
state = M51.IrcConn.Supervisor . state ( sup_pid )
371
371
M51.IrcConn.State . add_capabilities ( state , cap_atoms )
372
372
else
373
- send . ( % M51.Irc.Command { source: "server" , command: "CAP" , params: [ "*" , "NAK" , caps ] } )
373
+ send . ( % M51.Irc.Command { source: "server. " , command: "CAP" , params: [ "*" , "NAK" , caps ] } )
374
374
end
375
375
376
376
nil
@@ -558,7 +558,7 @@ defmodule M51.IrcConn.Handler do
558
558
nick = M51.IrcConn.State . nick ( state )
559
559
560
560
send_numeric = fn numeric , params ->
561
- send . ( % M51.Irc.Command { source: "server" , command: numeric , params: [ nick | params ] } )
561
+ send . ( % M51.Irc.Command { source: "server. " , command: numeric , params: [ nick | params ] } )
562
562
end
563
563
564
564
# RPL_WELCOME
@@ -591,7 +591,7 @@ defmodule M51.IrcConn.Handler do
591
591
send = make_send_function ( command , sup_pid )
592
592
593
593
send_numeric = fn numeric , params ->
594
- send . ( % M51.Irc.Command { source: "server" , command: numeric , params: [ nick | params ] } )
594
+ send . ( % M51.Irc.Command { source: "server. " , command: numeric , params: [ nick | params ] } )
595
595
end
596
596
597
597
# This function is only called if the nick matches the user_id, and the
@@ -688,7 +688,7 @@ defmodule M51.IrcConn.Handler do
688
688
689
689
send . ( % M51.Irc.Command {
690
690
tags: tags ,
691
- source: "server" ,
691
+ source: "server. " ,
692
692
command: "400" ,
693
693
params: [
694
694
nick || "*" ,
@@ -716,7 +716,7 @@ defmodule M51.IrcConn.Handler do
716
716
_ -> nick
717
717
end
718
718
719
- % M51.Irc.Command { source: "server" , command: numeric , params: [ first_param | params ] }
719
+ % M51.Irc.Command { source: "server. " , command: numeric , params: [ first_param | params ] }
720
720
end
721
721
722
722
send_numeric = fn numeric , params ->
@@ -741,7 +741,7 @@ defmodule M51.IrcConn.Handler do
741
741
nil
742
742
743
743
{ "CAP" , [ "LIST" | _ ] } ->
744
- send . ( % M51.Irc.Command { source: "server" , command: "CAP" , params: [ "*" , "LIST" , "sasl" ] } )
744
+ send . ( % M51.Irc.Command { source: "server. " , command: "CAP" , params: [ "*" , "LIST" , "sasl" ] } )
745
745
746
746
{ "CAP" , [ subcommand | _ ] } ->
747
747
# ERR_INVALIDCAPCMD
@@ -1199,7 +1199,7 @@ defmodule M51.IrcConn.Handler do
1199
1199
1200
1200
{ :error , error } ->
1201
1201
send . ( % M51.Irc.Command {
1202
- source: "server" ,
1202
+ source: "server. " ,
1203
1203
command: "NOTICE" ,
1204
1204
params: [ channel , "Error while sending message: " <> Kernel . inspect ( error ) ]
1205
1205
} )
0 commit comments