MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / setAutoAway

Method setAutoAway

src/main/java/Client/AutoStatus.java:126–140  ·  view source on GitHub ↗
(String msg)

Source from the content-addressed store, hash-verified

124 }
125
126 private void setAutoAway(String msg) {
127 synchronized(this) {
128 int status = sd.roster.myStatus;
129 if (status == Presence.PRESENCE_ONLINE || status == Presence.PRESENCE_CHAT) {
130 prevStatus = status;
131 isAwaySet = true;
132 if (Config.autoAwayType != Config.AWAY_MESSAGE) {
133 sd.roster.sendPresence(Presence.PRESENCE_AWAY, msg);
134 } else {
135 ExtendedStatus es = StatusList.getInstance().getStatus(Presence.PRESENCE_AWAY);
136 sd.roster.sendPresence(Presence.PRESENCE_AWAY, es.getMessage());
137 }
138 }
139 }
140 }
141
142 private void setAutoXa(String msg) {
143 synchronized(this) {

Callers 2

runMethod · 0.95
appLockedMethod · 0.95

Calls 4

getInstanceMethod · 0.95
getMessageMethod · 0.95
sendPresenceMethod · 0.80
getStatusMethod · 0.45

Tested by

no test coverage detected