| 1393 |
1393 |
| 1394 } else { |
1394 } else { |
| 1395 if (flags & WFLAG_WHISPER) { |
1395 if (flags & WFLAG_WHISPER) { |
| 1396 /* if we're whispering, it's not an autoresponse */ |
1396 /* if we're whispering, it's not an autoresponse */ |
| 1397 if (meify(what)) { |
1397 if (meify(what)) { |
| 1398 str = g_malloc(64); |
1398 str = g_malloc(1024); |
| 1399 g_snprintf(str, 62, "***%s", who); |
1399 g_snprintf(str, 1024, "***%s", who); |
| 1400 strcpy(colour, "#6C2585\0"); |
1400 strcpy(colour, "#6C2585\0"); |
| 1401 } else { |
1401 } else { |
| 1402 str = g_malloc(64); |
1402 str = g_malloc(1024); |
| 1403 g_snprintf(str, 62, "*%s*:", who); |
1403 g_snprintf(str, 1024, "*%s*:", who); |
| 1404 strcpy(colour, "#00ff00\0"); |
1404 strcpy(colour, "#00ff00\0"); |
| 1405 } |
1405 } |
| 1406 } else { |
1406 } else { |
| 1407 if (meify(what)) { |
1407 if (meify(what)) { |
| 1408 str = g_malloc(64); |
1408 str = g_malloc(1024); |
| 1409 if (flags & WFLAG_AUTO) |
1409 if (flags & WFLAG_AUTO) |
| 1410 g_snprintf(str, 62, "%s ***%s", AUTO_RESPONSE, who); |
1410 g_snprintf(str, 1024, "%s ***%s", AUTO_RESPONSE, who); |
| 1411 else |
1411 else |
| 1412 g_snprintf(str, 62, "***%s", who); |
1412 g_snprintf(str, 1024, "***%s", who); |
| 1413 strcpy(colour, "#062585\0"); |
1413 strcpy(colour, "#062585\0"); |
| 1414 } else { |
1414 } else { |
| 1415 str = g_malloc(64); |
1415 str = g_malloc(1024); |
| 1416 if (flags & WFLAG_AUTO) |
1416 if (flags & WFLAG_AUTO) |
| 1417 g_snprintf(str, 62, "%s %s", who, AUTO_RESPONSE); |
1417 g_snprintf(str, 1024, "%s %s", who, AUTO_RESPONSE); |
| 1418 else |
1418 else |
| 1419 g_snprintf(str, 62, "%s:", who); |
1419 g_snprintf(str, 1024, "%s:", who); |
| 1420 if (flags & WFLAG_RECV) |
1420 if (flags & WFLAG_RECV) |
| 1421 strcpy(colour, "#ff0000"); |
1421 strcpy(colour, "#ff0000"); |
| 1422 else if (flags & WFLAG_SEND) |
1422 else if (flags & WFLAG_SEND) |
| 1423 strcpy(colour, "#0000ff"); |
1423 strcpy(colour, "#0000ff"); |
| 1424 } |
1424 } |