{"action":"created","issue":{"url":"https://api.github.com/repos/kvirc/KVIrc/issues/1959","repository_url":"https://api.github.com/repos/kvirc/KVIrc","labels_url":"https://api.github.com/repos/kvirc/KVIrc/issues/1959/labels{/name}","comments_url":"https://api.github.com/repos/kvirc/KVIrc/issues/1959/comments","events_url":"https://api.github.com/repos/kvirc/KVIrc/issues/1959/events","html_url":"https://github.com/kvirc/KVIrc/issues/1959","id":151837705,"number":1959,"title":"Event handler names with spaces in name are mishandled depending on how they are added.","user":{"login":"un1versal","id":3521959,"avatar_url":"https://avatars.githubusercontent.com/u/3521959?v=3","gravatar_id":"","url":"https://api.github.com/users/un1versal","html_url":"https://github.com/un1versal","followers_url":"https://api.github.com/users/un1versal/followers","following_url":"https://api.github.com/users/un1versal/following{/other_user}","gists_url":"https://api.github.com/users/un1versal/gists{/gist_id}","starred_url":"https://api.github.com/users/un1versal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un1versal/subscriptions","organizations_url":"https://api.github.com/users/un1versal/orgs","repos_url":"https://api.github.com/users/un1versal/repos","events_url":"https://api.github.com/users/un1versal/events{/privacy}","received_events_url":"https://api.github.com/users/un1versal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kvirc/KVIrc/labels/Status%20%E2%96%A0%20Confirmed","name":"Status ■ Confirmed","color":"336600"},{"url":"https://api.github.com/repos/kvirc/KVIrc/labels/Type%20%E2%96%A0%20Bug","name":"Type ■ Bug","color":"A80000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/kvirc/KVIrc/milestones/6","html_url":"https://github.com/kvirc/KVIrc/milestones/5.x.x%20-%20Release%20**BLOCKERS**","labels_url":"https://api.github.com/repos/kvirc/KVIrc/milestones/6/labels","id":1365643,"number":6,"title":"5.x.x - Release **BLOCKERS**","description":"FEEL FREE TO FIX / ADD / REMOVE ISSUES from this MILESTONE\r\n\r\nNumerics refactor (blindsighttf2)  \r\nTransifex? (need someone with credentials to handle the strings push to and from)  \r\nOther minutiae\r\n","creator":{"login":"un1versal","id":3521959,"avatar_url":"https://avatars.githubusercontent.com/u/3521959?v=3","gravatar_id":"","url":"https://api.github.com/users/un1versal","html_url":"https://github.com/un1versal","followers_url":"https://api.github.com/users/un1versal/followers","following_url":"https://api.github.com/users/un1versal/following{/other_user}","gists_url":"https://api.github.com/users/un1versal/gists{/gist_id}","starred_url":"https://api.github.com/users/un1versal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un1versal/subscriptions","organizations_url":"https://api.github.com/users/un1versal/orgs","repos_url":"https://api.github.com/users/un1versal/repos","events_url":"https://api.github.com/users/un1versal/events{/privacy}","received_events_url":"https://api.github.com/users/un1versal/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":33,"state":"open","created_at":"2015-10-20T07:34:12Z","updated_at":"2016-08-17T09:27:05Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-04-29T10:33:19Z","updated_at":"2016-09-16T22:39:32Z","closed_at":null,"body":"### Expected behavior\r\nevent handler names added via script/command or manually via GUI, with or without space in name) should be handled and display in event editor in a consistent and non buggy manner \r\n\r\n### Actual behavior\r\n\r\n[know trigger] The GUI event editor strips spaces form the handlers names under some conditions\r\n[know trigger] adding handlers via GUI event editor strips spaces form the handlers names\r\n\r\nHandler names with spaces in name can behave and cause **eventctl** commands to behave erratically especially when such events names with spaces are *magically* gone\r\n\r\nReference: https://github.com/kvirc/kvirc-scripts/issues/14\r\n\r\n### **Related** https://github.com/kvirc/KVIrc/issues/218\r\n\r\n[//]: # (Besides the text description, include any screenshot(s) that help us visualize the issue you're facing)\r\n\r\n### Steps to reproduce the issue\r\n* Add a handler manually via GUI event editor **notice** does not allow spaces in handler name once click **apply**\r\n![capture](https://cloud.githubusercontent.com/assets/3521959/14913062/349da6da-0df8-11e6-9200-252a31d5c168.PNG)\r\n\r\n* **Close event editor**\r\n\r\n* add a event handler via command line in any input line with:\r\n```/event(OnURLLinkPopupRequest,added via command in input line) { popup.show urlpopup $0; }```\r\n**notice** the handler manually via command allows spaces in handler name\r\n![capture](https://cloud.githubusercontent.com/assets/3521959/14913199/3b8ca9ea-0df9-11e6-9f21-9d78d8f682d0.PNG)\r\n\r\n* Selecting via event editor (via GUI) **OnURLLinkPopupRequest** then selecting the handler named **```added via command in input line```** then selecting **OnURLLinkPopupRequest** again causes spaces in event name to disappear. \r\n![capture](https://cloud.githubusercontent.com/assets/3521959/14913298/f777372e-0df9-11e6-9bf0-76e6faeae219.PNG)\r\n\r\n* \r\n\r\n### System information\r\n[//]: # (Type \"/about.kvirc\" (or click \"Help → About KVIrc\") and copy&paste the details from the \"Executable Information\" tab below between ``` marks)\r\n[//]: # (Also Enter any OS information the \"Executable Information\" tab doesn't contain, e.g. KDE, Gentoo, Linux Mint, etc.)\r\n\r\n```\r\nKVIrc 4.9.2 'Aria'\r\n\r\nRuntime Info:\r\nSystem name: Linux 3.13.0-85-generic\r\nSystem version: #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016\r\nArchitecture: x86_64\r\nQt version: 5.5.1\r\nQt theme: fusion\r\n\r\nBuild Info:\r\nBuild date: 2016-04-29 06:51:37 UTC\r\nSources date: 20160428\r\nRevision number: git-6544-gfa33e18\r\nSystem name: Linux-3.13.0-85-generic\r\nCPU name: x86_64\r\nBuild command: /usr/bin/cmake\r\nBuild flags: \r\n   MANDIR=share/man\r\n   CMAKE_INSTALL_PREFIX=/usr\r\n   LIB_SUFFIX=/x86_64-linux-gnu\r\n   Threads=POSIX\r\nCompiler name: /usr/bin/c++\r\nCompiler flags: N/A\r\nQt version: 5.5.1\r\nFeatures: IRC, Debug, Crypt, SSL, IfAddr, IPC, OSS, Transparency, Webkit, Perl, Python, Enchant, Qt5, KVS\r\n```\r\nSystem:    Kernel 3.13.0-85-generic x86_64 (64 bit) Desktop Cinnamon 2.8.8  Distro Linux Mint 17.3 Rosa\r\n\r\n[//]: # (If you experienced crashes, segfaults please also include a stacktrace below, For how-to read: https://github.com/kvirc/KVIrc/wiki/Grabbing-a-useful-backtrace.)"},"comment":{"url":"https://api.github.com/repos/kvirc/KVIrc/issues/comments/247724935","html_url":"https://github.com/kvirc/KVIrc/issues/1959#issuecomment-247724935","issue_url":"https://api.github.com/repos/kvirc/KVIrc/issues/1959","id":247724935,"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},"created_at":"2016-09-16T22:39:32Z","updated_at":"2016-09-16T22:39:32Z","body":"Well, the space in the name *is* the reason why there are two handlers."}}
{"actor":{"display_login":"DarthGandalf"}}