Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 6321:3613007cbb6e
[gaim-migrate @ 6820]
Bjoern Voigt:
"I've updated the German translation and fixed some i18n bugs.
The file i18n16.patch contains:
- updated German translation
- translation of the "boring default" away message works again
- marked some forgotten error messages as translatable"
Guntupalli Karunakar gave me a Hindi translation and Vincent van
Adrighem updated the dutch translation.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 29 Jul 2003 02:27:33 +0000 |
parents | 1bf6fd117797 |
children | e06e04e44914 |
comparison
equal
deleted
inserted
replaced
6320:ef9065e52582 | 6321:3613007cbb6e |
---|---|
1810 gchar buf[1024]; | 1810 gchar buf[1024]; |
1811 gboolean off; | 1811 gboolean off; |
1812 | 1812 |
1813 i = read(idata->fd, buf, 1024); | 1813 i = read(idata->fd, buf, 1024); |
1814 if (i <= 0) { | 1814 if (i <= 0) { |
1815 gaim_connection_error(gc, "Read error"); | 1815 gaim_connection_error(gc, _("Read error")); |
1816 return; | 1816 return; |
1817 } | 1817 } |
1818 | 1818 |
1819 idata->rxqueue = g_realloc(idata->rxqueue, i + idata->rxlen + 1); | 1819 idata->rxqueue = g_realloc(idata->rxqueue, i + idata->rxlen + 1); |
1820 memcpy(idata->rxqueue + idata->rxlen, buf, i); | 1820 memcpy(idata->rxqueue + idata->rxlen, buf, i); |
1869 GError *err = NULL; | 1869 GError *err = NULL; |
1870 | 1870 |
1871 idata = gc->proto_data; | 1871 idata = gc->proto_data; |
1872 | 1872 |
1873 if (source < 0) { | 1873 if (source < 0) { |
1874 gaim_connection_error(gc, "Write error"); | 1874 gaim_connection_error(gc, _("Write error")); |
1875 return; | 1875 return; |
1876 } | 1876 } |
1877 idata->fd = source; | 1877 idata->fd = source; |
1878 | 1878 |
1879 /* Try a quick conversion to see if the specified encoding is OK */ | 1879 /* Try a quick conversion to see if the specified encoding is OK */ |
1897 if (gaim_account_get_password(account) != NULL) { | 1897 if (gaim_account_get_password(account) != NULL) { |
1898 g_snprintf(buf, sizeof(buf), "PASS %s\r\n", | 1898 g_snprintf(buf, sizeof(buf), "PASS %s\r\n", |
1899 gaim_account_get_password(account)); | 1899 gaim_account_get_password(account)); |
1900 | 1900 |
1901 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { | 1901 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { |
1902 gaim_connection_error(gc, "Write error"); | 1902 gaim_connection_error(gc, _("Write error")); |
1903 return; | 1903 return; |
1904 } | 1904 } |
1905 } | 1905 } |
1906 | 1906 |
1907 alias = gaim_account_get_alias(account); | 1907 alias = gaim_account_get_alias(account); |
1910 g_get_user_name(), hostname, | 1910 g_get_user_name(), hostname, |
1911 idata->server, | 1911 idata->server, |
1912 (alias == NULL ? "gaim" : alias)); | 1912 (alias == NULL ? "gaim" : alias)); |
1913 | 1913 |
1914 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { | 1914 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { |
1915 gaim_connection_error(gc, "Write error"); | 1915 gaim_connection_error(gc, _("Write error")); |
1916 return; | 1916 return; |
1917 } | 1917 } |
1918 | 1918 |
1919 g_snprintf(buf, sizeof(buf), "NICK %s\r\n", | 1919 g_snprintf(buf, sizeof(buf), "NICK %s\r\n", |
1920 gaim_connection_get_display_name(gc)); | 1920 gaim_connection_get_display_name(gc)); |
1921 | 1921 |
1922 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { | 1922 if (irc_write(idata->fd, buf, strlen(buf)) < 0) { |
1923 gaim_connection_error(gc, "Write error"); | 1923 gaim_connection_error(gc, _("Write error")); |
1924 return; | 1924 return; |
1925 } | 1925 } |
1926 | 1926 |
1927 gc->inpa = gaim_input_add(idata->fd, GAIM_INPUT_READ, irc_callback, gc); | 1927 gc->inpa = gaim_input_add(idata->fd, GAIM_INPUT_READ, irc_callback, gc); |
1928 } | 1928 } |