Skip to content

Commit

Permalink
Disable old broken OnURLLinkPopupRequest when restoring default script;
Browse files Browse the repository at this point in the history
fix #2140 (#2183)
  • Loading branch information
ctrlaltca authored and wodim committed Feb 23, 2017
1 parent fb6ec13 commit 1dc42d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions data/defscript/events.kvs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ event(OnURLLinkClick,default)
openurl $0
}

# Fix bug https://github.com/kvirc/KVIrc/issues/2140
eventctl -d -q OnURLLinkPopupRequest "URL popup"
eventctl -d -q OnURLLinkPopupRequest "URLpopup"

event(OnURLLinkPopupRequest,default)
{
popup.show urlpopup $0
Expand Down
2 changes: 1 addition & 1 deletion src/kvirc/kvs/KviKvsCoreCallbackCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ namespace KviKvsCoreCallbackCommands
or a numeric code (from 0 to 999) of a RAW server message.[br]
If the -q switch is specified then the command runs in quiet mode.
@seealso:
[cmd]eventctl[/cmd]
[cmd]eventctl[/cmd] [fnc]$iseventenabled[/fnc]
*/

KVSCCC(event)
Expand Down
2 changes: 2 additions & 0 deletions src/kvirc/kvs/KviKvsCoreFunctions_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@ namespace KviKvsCoreFunctions
<boolean> $isEventEnabled(<event_name:string>,<handler_name:string>)
@description:
Returns [b]1[/b] if the event handler is enabled.
@seealso:
[cmd]event[/cmd] [cmd]eventctl[/cmd]
*/

KVSCF(isEventEnabled)
Expand Down
2 changes: 1 addition & 1 deletion src/kvirc/kvs/KviKvsCoreSimpleCommands_af.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ namespace KviKvsCoreSimpleCommands
The <event_name> may be one of the kvirc-builtin event names
or a numeric code (from 0 to 999) of a raw server message.[br]
@seealso:
[cmd]event[/cmd]
[cmd]event[/cmd] [fnc]$iseventenabled[/fnc]
*/
KVSCSC(eventctl)
{
Expand Down

0 comments on commit 1dc42d6

Please sign in to comment.