0:2 < :baz!~baz@baz.baz PRIVMSG foo1 :fine!
6 < [baz] fine!
+# handle failure to query absent user
+> /privmsg barbar hello!
+2 > PRIVMSG barbar :hello!
+7 > [foo1] hello!
+0:2 < :*.?.net 401 foo1 barbar :No such nick/channel
+7 !$ barbar not online
+
# handle non-self renaming
0:2 < :baz!~baz@baz.baz NICK :bazbaz
1,2 $ users:2:nick set to: [bazbaz]
2 > QUIT :ircplom says bye
0:2 < :foo1!~foobarbaz@baz.bar.foo QUIT :Client Quit
1,2 $ users:me:exit_msg set to: [QClient Quit]
-3,6 $ foo1!~foobarbaz@baz.bar.foo quits: Client Quit
+3,6,7 $ foo1!~foobarbaz@baz.bar.foo quits: Client Quit
1,2 $ channels:#testtest:exits:me set to: [QClient Quit]
1,2 $ channels:#testtest:user_ids set to:
5 $ foo1!~foobarbaz@baz.bar.foo quits: Client Quit
0:2 < ERROR :Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]
1,2 $ connection_state set to: [Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]]
1,2 $ connection_state set to: []
-3,4,5,6 $ DISCONNECTED
+3,4,5,6,7 $ DISCONNECTED
1,2 $ isupport cleared
1,2 $ isupport:CHANTYPES set to: [#&]
1,2 $ isupport:PREFIX set to: [(ov)@+]
# check that (save TUI tests assuming start on window 0, and no 4 yet) on reconnect, all the same effects can be expected
> /reconnect
repeat 63:65
-3,4,5,6 $ CONNECTED
+3,4,5,6,7 $ CONNECTED
repeat 66:158
-repeat 167:357
+repeat 167:364
# test setting up second client, but 432 irrecoverably
> /connect baz.bar.foo ?foo foo:foo
-7,8 $ isupport cleared
-7,8 $ isupport:CHANTYPES set to: [#&]
-7,8 $ isupport:PREFIX set to: [(ov)@+]
-7,8 $ isupport:USERLEN set to: [10]
-7,8 $ hostname set to: [baz.bar.foo]
-7,8 $ port set to: [-1]
-7,8 $ nick_wanted set to: [?foo]
-7,8 $ user_wanted set to: [foo]
-7,8 $ realname set to: [foo]
-7,8 $ port set to: [6697]
-7,8 $ connection_state set to: [connecting]
-7,8 $ connection_state set to: [connected]
+8,9 $ isupport cleared
+8,9 $ isupport:CHANTYPES set to: [#&]
+8,9 $ isupport:PREFIX set to: [(ov)@+]
+8,9 $ isupport:USERLEN set to: [10]
+8,9 $ hostname set to: [baz.bar.foo]
+8,9 $ port set to: [-1]
+8,9 $ nick_wanted set to: [?foo]
+8,9 $ user_wanted set to: [foo]
+8,9 $ realname set to: [foo]
+8,9 $ port set to: [6697]
+8,9 $ connection_state set to: [connecting]
+8,9 $ connection_state set to: [connected]
, $ CONNECTED
-1:8 > CAP LS :302
-1:8 > USER foo 0 * :foo
-1:8 > NICK :?foo
-1:8 < :*.?.net 432 * ?foo :Erroneous nickname
-7,8 $ connection_state set to: []
+1:9 > CAP LS :302
+1:9 > USER foo 0 * :foo
+1:9 > NICK :?foo
+1:9 < :*.?.net 432 * ?foo :Erroneous nickname
+8,9 $ connection_state set to: []
, $ DISCONNECTED
-7,8 $ isupport cleared
-7,8 $ isupport:CHANTYPES set to: [#&]
-7,8 $ isupport:PREFIX set to: [(ov)@+]
-7,8 $ isupport:USERLEN set to: [10]
-7,8 !$ nickname refused for bad format, giving up
+8,9 $ isupport cleared
+8,9 $ isupport:CHANTYPES set to: [#&]
+8,9 $ isupport:PREFIX set to: [(ov)@+]
+8,9 $ isupport:USERLEN set to: [10]
+8,9 !$ nickname refused for bad format, giving up
> /quit
0 <