- Timestamp:
- 2005-12-04T21:55:15Z (19 years ago)
- Branches:
- master
- Children:
- 568aaf7
- Parents:
- 500a1b6 (diff), d636233 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- protocols
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r500a1b6 r019c031 22 22 */ 23 23 24 #ifdef HAVE_CONFIG_H25 #include "config.h"26 #endif27 28 24 #ifndef _WIN32 29 25 #include <sys/utsname.h> … … 59 55 #define DEFAULT_PORT 5222 60 56 #define DEFAULT_PORT_SSL 5223 57 #define JABBER_PORT_MIN 5220 58 #define JABBER_PORT_MAX 5229 61 59 62 60 #define JABBER_GROUP "Friends" … … 541 539 gjconn gjc; 542 540 543 if (!g_slist_find(get_connections(), gc)) {544 ssl_disconnect(source);545 return;546 }547 548 541 jd = gc->proto_data; 549 542 gjc = jd->gjc; … … 551 544 if (source == NULL) { 552 545 STATE_EVT(JCONN_STATE_OFF) 546 return; 547 } 548 549 if (!g_slist_find(get_connections(), gc)) { 550 ssl_disconnect(source); 553 551 return; 554 552 } … … 589 587 else if (port == -1 && ssl) 590 588 port = DEFAULT_PORT_SSL; 589 else if (port < JABBER_PORT_MIN || port > JABBER_PORT_MAX) { 590 serv_got_crap(GJ_GC(gjc), "For security reasons, the Jabber port number must be in the %d-%d range.", JABBER_PORT_MIN, JABBER_PORT_MAX); 591 STATE_EVT(JCONN_STATE_OFF) 592 return; 593 } 591 594 592 595 if (server == NULL) -
protocols/nogaim.c
r500a1b6 r019c031 452 452 void do_error_dialog( struct gaim_connection *gc, char *msg, char *title ) 453 453 { 454 serv_got_crap( gc, "Error: %s", msg ); 454 if( msg && title ) 455 serv_got_crap( gc, "Error: %s: %s", title, msg ); 456 else if( msg ) 457 serv_got_crap( gc, "Error: %s", msg ); 458 else if( title ) 459 serv_got_crap( gc, "Error: %s", title ); 460 else 461 serv_got_crap( gc, "Error" ); 455 462 } 456 463 … … 737 744 /* If there's a newline/space in this string, split up there, 738 745 looks a bit prettier. */ 739 if( ( nl = strrchr( msg, '\n' ) ) || ( nl = str chr( msg, ' ' ) ) )746 if( ( nl = strrchr( msg, '\n' ) ) || ( nl = strrchr( msg, ' ' ) ) ) 740 747 { 741 748 msg[425] = tmp; … … 769 776 770 777 if( ( u = user_findhandle( gc, handle ) ) ) 771 irc_ msgfrom( gc->irc, u->nick, "\1TYPING 1\1" );778 irc_privmsg( gc->irc, u, "PRIVMSG", gc->irc->nick, NULL, "\1TYPING 1\1" ); 772 779 } 773 780 -
protocols/proxy.c
r500a1b6 r019c031 114 114 } 115 115 116 static void no_one_calls(gpointer data, gint source, GaimInputCondition cond)116 static void gaim_io_connected(gpointer data, gint source, GaimInputCondition cond) 117 117 { 118 118 struct PHB *phb = data; … … 163 163 if (connect(fd, (struct sockaddr *)sin, sizeof(*sin)) < 0) { 164 164 if (sockerr_again()) { 165 phb->inpa = gaim_input_add(fd, GAIM_INPUT_WRITE, no_one_calls, phb);165 phb->inpa = gaim_input_add(fd, GAIM_INPUT_WRITE, gaim_io_connected, phb); 166 166 phb->fd = fd; 167 167 } else { -
protocols/yahoo/crypt.c
r500a1b6 r019c031 22 22 * already had. isn't that lovely. people should just use linux or 23 23 * freebsd, crypt works properly on those systems. i hate solaris */ 24 25 #if HAVE_CONFIG_H26 # include <config.h>27 #endif28 24 29 25 #if HAVE_STRING_H -
protocols/yahoo/libyahoo2.c
r500a1b6 r019c031 43 43 * 44 44 */ 45 46 #if HAVE_CONFIG_H47 # include <config.h>48 #endif49 45 50 46 #ifndef _WIN32 -
protocols/yahoo/yahoo_httplib.c
r500a1b6 r019c031 19 19 * 20 20 */ 21 22 #if HAVE_CONFIG_H23 # include <config.h>24 #endif25 21 26 22 #include <stdio.h> -
protocols/yahoo/yahoo_util.c
r500a1b6 r019c031 19 19 * 20 20 */ 21 22 #if HAVE_CONFIG_H23 # include <config.h>24 #endif25 21 26 22 #if STDC_HEADERS
Note: See TracChangeset
for help on using the changeset viewer.