Translate
Appearance
Text
This page always uses small font size
Width
AllKonversation/Scripts/Ghosttrick
Translate to جهلسری بلوچی
Translation of the wiki page Konversation/Scripts/Ghosttrick from English (en).
This tool does not work without JavaScript. JavaScript is disabled, failed to work, or this browser is unsupported.
Translations:Konversation/Scripts/Ghosttrick/Page display title/bcc
Konversation/Scripts/Ghosttrick
You need translation rights to translate messages.Get permission
Loading...
Latest updatesAll changes
Suggestions
In other languages
Need more help?Ask for more information
The settings of a network contain a "Commands" field which can be used to run input line commands upon a connection to that network being established. In that field, there's a special "%nick" variable available which expands into the current nickname. This can be combined with the
/exec command to run an external script that evaluates whether the nickname is the desired nick, and if not, use '''Konversation's''' DCOP IPC interface to make it send the ghost command to nickserv.
Translations:Konversation/Scripts/Ghosttrick/1/bcc
The settings of a network contain a "Commands" field which can be used to run input line commands upon a connection to that network being established. In that field, there's a special "%nick" variable available which expands into the current nickname. This can be combined with the
/exec command to run an external script that evaluates whether the nickname is the desired nick, and if not, use '''Konversation's''' DCOP IPC interface to make it send the ghost command to nickserv.
You need translation rights to translate messages.Get permission
Loading...
Latest updatesAll changes
Suggestions
In other languages
Need more help?Ask for more information
Hence, you would have to put something like this into the user-local scripts folder (KDE3 & KDE4: <tt>~/.kde/share/apps/konversation/scripts</tt>, KF5: <tt>~/.local/share/konversation/scripts</tt>), under the name "getnickback", and mark it as executable:
# if your current assigned nick isn't the same as your desired one, ghost yourself and change nick
if [ "$NICK" != "$nick" ]
then
dcop $PORT default raw $SERVER "PRIVMSG nickserv :GHOST $nick $pass"
dcop $PORT default raw $SERVER "/nick $nick"
fi
# now identify yourself at the server
dcop $PORT default raw $SERVER "PRIVMSG nickserv :IDENTIFY $pass"
</syntaxhighlight>}}<!--{{-->
; As KDE 4 and later has changed to use D-Bus instead of DCOP, use this variant for versions based on kdelibs4 or KF5:
<!--}}-->{{Input|<syntaxhighlight lang="php" line>
#!/bin/sh
# if your current assigned nick isn't the same as your desired one, ghost yourself and change nick
if [ "$NICK" != "$nick" ]
then
qdbus org.kde.konversation /irc raw $CONNECTION "PRIVMSG nickserv :GHOST $nick $pass"
qdbus org.kde.konversation /irc raw $CONNECTION "NICK $nick"
fi
# now identify yourself at the server
qdbus org.kde.konversation /irc raw $CONNECTION "PRIVMSG nickserv :IDENTIFY $pass"
</syntaxhighlight>}}<!--{{-->
Notice the nick and password settings you need to fill in as you need them to be. Then, into the network's "Commands" field put <code>/exec getnickback %nick</code>
Loading messages...
0% translated, 0% reviewed
Retrieved from "https://userbase.kde.org/Special:Translate"