Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 8fa3f65

Browse files
gesslarthefallentree
authored andcommitted
driver compalins about visibility. changed from protected to public
1 parent 7697aca commit 8fa3f65

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

lib/daemons/imud_d.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected void send_to_router(string type, mixed * message)
112112
send_message(type, ROUTER, 0, message);
113113
}
114114

115-
protected void send_to_mud(string type, string mudname, mixed * message)
115+
public void send_to_mud(string type, string mudname, mixed * message)
116116
{
117117
send_message(type, mudname, 0, message);
118118
}
@@ -137,13 +137,16 @@ protected void return_error(string mudname, string username,
137137
/* handle reads from the router */
138138
private nomask void handle_router_read(object socket, mixed * message)
139139
{
140-
if (message[0]!= "mudlist")
141-
{
142-
string s = sprintf("%O", message);
143-
if ( sizeof(s) > 200 )
144-
s[200..] = "...";
145-
// TBUG(s);
146-
}
140+
// If there's nothing in the message, then return ;
141+
if(!sizeof(message)) return ;
142+
143+
if (message[0]!= "mudlist")
144+
{
145+
string s = sprintf("%O", message);
146+
if ( sizeof(s) > 200 )
147+
s[200..] = "...";
148+
// TBUG(s);
149+
}
147150

148151
if ( !dispatch[message[0]] )
149152
{

0 commit comments

Comments
 (0)