# HG changeset patch # User Eric Warmenhoven # Date 960847370 0 # Node ID 7c74e2f579b56b4acf5d142d251cfdb57163f03c # Parent bb87776942c4494ce062a8137f34558fbe08f97f [gaim-migrate @ 411] Heh, whoops. you can send messages to offline people now. committer: Tailor Script diff -r bb87776942c4 -r 7c74e2f579b5 plugins/SIGNALS --- a/plugins/SIGNALS Mon Jun 12 21:09:08 2000 +0000 +++ b/plugins/SIGNALS Mon Jun 12 22:02:50 2000 +0000 @@ -161,6 +161,9 @@ 'text' is what you're about to say, linkified/HTML-ized, but not TOC-escaped. + Be aware that you receive messages you send (as noted above). This + event will be called before you actually send the message though. + event_warned: char *who, int level diff -r bb87776942c4 -r 7c74e2f579b5 src/dialogs.c --- a/src/dialogs.c Mon Jun 12 21:09:08 2000 +0000 +++ b/src/dialogs.c Mon Jun 12 22:02:50 2000 +0000 @@ -455,7 +455,11 @@ { int no = atoi(d); +#ifndef USE_OSCAR char *w = strtok(NULL, ":"); +#else + char *w = d + 4; +#endif char buf[256]; char buf2[32]; diff -r bb87776942c4 -r 7c74e2f579b5 src/oscar.c --- a/src/oscar.c Mon Jun 12 21:09:08 2000 +0000 +++ b/src/oscar.c Mon Jun 12 22:02:50 2000 +0000 @@ -212,18 +212,15 @@ switch (sess->logininfo.errorcode) { case 0x18: /* connecting too frequently */ - strtok("983:", ":"); - show_error_dialog("983"); + show_error_dialog("983\0\0"); break; case 0x05: /* Incorrect nick/password */ - strtok("980:", ":"); - show_error_dialog("980"); + show_error_dialog("980\0\0"); break; case 0x1c: /* client too old */ - strtok("981:", ":"); - show_error_dialog("981"); + show_error_dialog("981\0\0"); break; } sprintf(debug_buff, "Login Error Code 0x%04x\n", @@ -597,26 +594,22 @@ /* sending messages too fast */ /* this also gets sent to us when our warning level * changes, don't ask me why or how to interpret it */ - strtok("960:someone", ":"); - show_error_dialog("960"); + show_error_dialog("960\0someone"); } break; case 0x0002: if (subtype == 0x0001) { /* unknown SNAC error */ - strtok("970:", ":"); - show_error_dialog("970"); + show_error_dialog("970\0\0"); } break; case 0x0004: if (subtype == 0x0001) { /* user is not logged in */ - strtok("901:User", ":"); - show_error_dialog("901"); + show_error_dialog("901\0User"); } else if (subtype == 0x000a) { /* message has been dropped */ - strtok("903:", ":"); - show_error_dialog("903"); + show_error_dialog("903\0\0"); } break; } @@ -641,8 +634,7 @@ if (prof == NULL || !strlen(prof)) { /* no info/away message */ - strtok("977:", ":"); - show_error_dialog("977"); + show_error_dialog("977\0\0"); return 1; }