mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
Added bot plugin, it also has almost-functional botnet.
Changed configure.in's functionality so that you could tell what modules you want to build in main irssi binary and it will create automatically the .c files that need to call the module_init()/deinit() functions. Fixed several minor things.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@230 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
487da41745
commit
76605ad0ae
41 changed files with 2809 additions and 246 deletions
|
|
@ -41,7 +41,7 @@ static void get_source_host_ip(void)
|
|||
/* FIXME: This will block! */
|
||||
if (!source_host_ok) {
|
||||
source_host_ok = *settings_get_str("hostname") != '\0' &&
|
||||
net_gethostname(settings_get_str("hostname"), &ip) == 0;
|
||||
net_gethostbyname(settings_get_str("hostname"), &ip) == 0;
|
||||
if (source_host_ok) {
|
||||
source_host_ip = g_new(IPADDR, 1);
|
||||
memcpy(source_host_ip, &ip, sizeof(IPADDR));
|
||||
|
|
@ -100,7 +100,7 @@ create_addr_conn(const char *address, int port, const char *password,
|
|||
/* resolve the IP and use it */
|
||||
IPADDR ip;
|
||||
|
||||
if (net_gethostname(sserver->own_host, &ip) == 0) {
|
||||
if (net_gethostbyname(sserver->own_host, &ip) == 0) {
|
||||
if (conn->own_ip == NULL)
|
||||
conn->own_ip = g_new(IPADDR, 1);
|
||||
memcpy(conn->own_ip, &ip, sizeof(IPADDR));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue