aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/my/libkvimy.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2010-12-25 03:14:10 +0000
committerGravatar Szymon Tomasz Stefanek2010-12-25 03:14:10 +0000
commitfc30c3ea279b53b2c0e2a3b71f9811ff1033076c (patch)
tree8da709e2160e50abd2e4b355f3b795fdbbd5aa56 /src/modules/my/libkvimy.cpp
parentUpdate str.grep short doc: avoid mentioning GNU regexp as we don't emulate it (diff)
downloadKVIrc-fc30c3ea279b53b2c0e2a3b71f9811ff1033076c.tar.gz
KVIrc-fc30c3ea279b53b2c0e2a3b71f9811ff1033076c.tar.bz2
KVIrc-fc30c3ea279b53b2c0e2a3b71f9811ff1033076c.zip
Added the very first shy 'auto-join this channel' feature to the window popup. .serverJoinChannels and .networkJoinChannels now return arrays. Reworked a bit the 'network name' mess in the IrcConnection... possibly needs more reorganizing. Some small tweaks in the server dialog.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5226 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/my/libkvimy.cpp')
-rw-r--r--src/modules/my/libkvimy.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/my/libkvimy.cpp b/src/modules/my/libkvimy.cpp
index 5196fa01b..3ccbb6a04 100644
--- a/src/modules/my/libkvimy.cpp
+++ b/src/modules/my/libkvimy.cpp
@@ -343,8 +343,10 @@ static bool my_kvs_fnc_serverIsSSL(KviKvsModuleFunctionCall * c)
in that irc_context.[br]
Please note that this function returns the name of the server as reported
by the server itself. Some servers report a bogus value for this field.
- You should take a look at $context.serverIpAddress or $context.serverHostName
- if you want a value that can be used to really reconnect to this server.
+ You should take a look at [fnc]$context.serverIpAddress[/fnc] if you want a value that
+ can be used to really reconnect to this server. If you want a value
+ to manipulate the server entry via the serverdb functions then
+ you probably need [fnc]$context.serverdbServerHostName[/fnc].
*/
static bool my_kvs_fnc_server(KviKvsModuleFunctionCall * c)
@@ -353,7 +355,7 @@ static bool my_kvs_fnc_server(KviKvsModuleFunctionCall * c)
if(wnd)
{
if(wnd->connection())
- c->returnValue()->setString(wnd->connection()->serverInfo()->name());
+ c->returnValue()->setString(wnd->connection()->currentServerName());
}
return true;
}
@@ -381,7 +383,7 @@ static bool my_kvs_fnc_network(KviKvsModuleFunctionCall * c)
if(wnd)
{
if(wnd->connection())
- c->returnValue()->setString(wnd->currentNetworkName().toUtf8().data());
+ c->returnValue()->setString(wnd->currentNetworkName());
}
return true;
}