{"action":"opened","issue":{"url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/1422","labels_url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/1422/labels{/name}","comments_url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/1422/comments","events_url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/1422/events","html_url":"https://github.com/DarthGandalf/kvirc-issues/issues/1422","id":97282958,"number":1422,"title":"[Split View] echo and echoprivmsg behavior is inconsistent.","user":{"login":"DarthGandalf","id":325092,"avatar_url":"https://avatars.githubusercontent.com/u/325092?v=3","gravatar_id":"","url":"https://api.github.com/users/DarthGandalf","html_url":"https://github.com/DarthGandalf","followers_url":"https://api.github.com/users/DarthGandalf/followers","following_url":"https://api.github.com/users/DarthGandalf/following{/other_user}","gists_url":"https://api.github.com/users/DarthGandalf/gists{/gist_id}","starred_url":"https://api.github.com/users/DarthGandalf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarthGandalf/subscriptions","organizations_url":"https://api.github.com/users/DarthGandalf/orgs","repos_url":"https://api.github.com/users/DarthGandalf/repos","events_url":"https://api.github.com/users/DarthGandalf/events{/privacy}","received_events_url":"https://api.github.com/users/DarthGandalf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-26T03:49:35Z","updated_at":"2015-07-26T03:49:35Z","closed_at":null,"body":"**Reported by ReggX on 21 Sep 2013 21:19:10 UTC**\nEnable Split view in your window first, then execute the following commands\r\n\r\n```\r\n#1\r\necho Nick no i switch\r\n#2\r\nechoprivmsg Nick User Host no i switch\r\n#3\r\necho -i=1 Nick i is set to 1\r\n#4\r\nechoprivmsg -i=1 Nick User Host i is set to 1\r\n#5\r\necho -i=32 Nick i is set to 32\r\n#6\r\nechoprivmsg -i=32 Nick User Host i is set to 32\r\n```\r\n\r\n\r\n#1, #3, #5 will appear on the top and #2, #4, #6 on the bottom.\r\n\r\n=> Basically, echo goes up, echoprivmsg goes down.\r\n\r\n\r\nNow disable and re-enable split view again.\r\n\r\n#1, #2, #3, #4 will be on the top and #5, #6 on the bottom.\r\n\r\n=> Status msgtypes will go up, Messaging msgtypes will go down.\r\n\r\n\r\nThis is espcially annoying when scripting custom CTCP ACTION messages, because echo will appear on the wrong view.\r\n\r\n\r\nMy recommendation: \r\n\r\n* If the -i switch is present, the msgtype decides where the message will end up.  \r\n\r\n* If -i is ommitted, '''either''' echo goes top and echoprivmsg goes bottom '''or''' they are handled implicitly as -i=0.\r\n\r\n(I'd go for the second one, because it's easier to implement.)\n\n---\nMigrated from: https://svn.kvirc.de/kvirc/ticket/1422"}}