mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +01:00
[MIRROR] canUseTopic now uses TRUE/FALSE instead of defines that just say TRUE [MDB IGNORE] (#16586)
* canUseTopic now uses TRUE/FALSE instead of defines that just say TRUE * etes * eyes Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
|
||||
if (!t || !sending_and_receiving)
|
||||
return
|
||||
if(!U.canUseTopic(computer, BE_CLOSE))
|
||||
if(!U.canUseTopic(computer, be_close = TRUE))
|
||||
return
|
||||
return sanitize(t)
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
if(computer.active_program != src)
|
||||
if(!computer.open_program(usr, src))
|
||||
return
|
||||
if(!href_list["close"] && usr.canUseTopic(computer, BE_CLOSE, FALSE, NO_TK))
|
||||
if(!href_list["close"] && usr.canUseTopic(computer, be_close = TRUE, no_dexterity = FALSE, no_tk = TRUE))
|
||||
switch(href_list["choice"])
|
||||
if("Message")
|
||||
send_message(usr, list(locate(href_list["target"])))
|
||||
|
||||
Reference in New Issue
Block a user