send_to_except function [by Raf]
Snippet Posted Wednesday, August 12th @ 11:36:32 PM, by George Greer in the Utils dept.
Added Dec 8, 1997. Click the link below to read it or download it.

From: Raf <picard@INDIGO.IE>
Subject: send_to_except

I was looking through the old-docs, and came a across a thing called
send_to_except.  Unfortunatly, it doesnt seem to be part of stock
anymore... So I wrote one of my own :)

comm.h
------

after void send_to_all(char *messg);
insert:
void send_to_except(char *messg, struct char_data *ch);


comm.c
------

after the void send_to_char function,
insert:

void send_to_except(char *messg, struct char_data *ch);
{
  struct descriptor_data *i;

  if (messg && ch->desc)
    for (i = descriptor_list; i; i = i->next)
      if (!i->connected)
        if (i != ch->desc)
        SEND_TO_Q(messg, i);
}



<< Scan Skill [by Mark Gerritsen] | Reply | View as text | Threaded | Sentinel Procedure [by Mendar] >>

 


Related Links
  download
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.