$Log$
+ Revision 591.43 2002/06/15 17:53:59 error
+ * citserver.c: MESG command can now send a different system message based
+ on the developer and client ID of the connected client
+
Revision 591.42 2002/06/15 04:52:26 ajc
* SpamAssassin connector is now configurable in <.A>ide <S>ysconfig <I>nternet.
* Allow more than one SA server (it'll try 'em all)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
FILE *mfp;
char targ[SIZ];
char buf[SIZ];
+ char buf2[SIZ];
char *dirs[2];
extract(buf,mname,0);
-
dirs[0]=mallok(64);
dirs[1]=mallok(64);
strcpy(dirs[0],"messages");
strcpy(dirs[1],"help");
- mesg_locate(targ,sizeof targ,buf,2,(const char **)dirs);
+ snprintf(buf2, sizeof buf2, "%s.%d.%d", buf, CC->cs_clientdev, CC->cs_clienttyp);
+ mesg_locate(targ,sizeof targ,buf2,2,(const char **)dirs);
+ if (strlen(targ) == 0) {
+ snprintf(buf2, sizeof buf2, "%s.%d", buf, CC->cs_clientdev);
+ mesg_locate(targ,sizeof targ,buf2,2,(const char **)dirs);
+ if (strlen(targ) == 0) {
+ mesg_locate(targ,sizeof targ,buf,2,(const char **)dirs);
+ }
+ }
phree(dirs[0]);
phree(dirs[1]);
-
if (strlen(targ)==0) {
cprintf("%d '%s' not found.\n",ERROR,mname);
return;