home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / relay / ihave.not.c < prev    next >
C/C++ Source or Header  |  1993-03-13  |  497b  |  35 lines

  1. /*
  2.  * Reject the Usenet ihave/sendme control messages. (NCMP)
  3.  */
  4.  
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7.  
  8. #include "news.h"
  9. #include "headers.h"
  10. #include "relay.h"
  11.  
  12. static void
  13. ignore(art, cmd, args)
  14. struct article *art;
  15. char *cmd, *args;
  16. {
  17.     transient(art, 'b', "`ihave (or sendme) %s' control ignored", args);
  18. }
  19.  
  20. void
  21. ihave(args, art)
  22. char *args;
  23. struct article *art;
  24. {
  25.     ignore(art, "ihave", args);
  26. }
  27.  
  28. void
  29. sendme(args, art)
  30. char *args;
  31. struct article *art;
  32. {
  33.     ignore(art, "sendme", args);
  34. }
  35.