Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ MUSHclient and Support for Instant Messenger Protocols

MUSHclient and Support for Instant Messenger Protocols

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Karl_Newbie   USA  (23 posts)  Bio
Date Thu 13 Mar 2008 08:51 AM (UTC)
Message
Has anyone attempted integrating MUSHclient to any degree with any of the popular instant messenger protocols, particularly the opensource XMPP aka Jabber?
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #1 on Thu 13 Mar 2008 04:16 PM (UTC)
Message
Pidgin and naim both have source code for various IM protocols posted for download on their websites. Trying to create a chat system that would be easily legible is actually the more difficult part, since you would have to keep chat windows separate from a mu* window.

I had the idea of doing this earlier, but realized it would be infinitely easier to just pop open an IM client and go through that. It might be possible, and a good idea, to make plugins for both Pidgin and MUSHclient to allow them to communicate with each other if you want to send some text to someone through MUSHclient. At the very least, it would be easy to implement the mud chat protocol that is included with MUSHclient already.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Karl_Newbie   USA  (23 posts)  Bio
Date Reply #2 on Thu 13 Mar 2008 11:46 PM (UTC)
Message
Quote:
it would be infinitely easier to just pop open an IM client and go through that. It might be possible, and a good idea, to make plugins for both Pidgin and MUSHclient to allow them to communicate with each other if you want to send some text to someone through MUSHclient.


That's exactly what I was thinking. Thanks for the tip about Pidgin's plugin availability. I have to check that out and see about capturing output in MUSHient via trigger and sending it to Pidgin.
Top

Posted by RichKK   (33 posts)  Bio
Date Reply #3 on Sat 07 Jun 2008 10:27 AM (UTC)

Amended on Sat 07 Jun 2008 10:29 AM (UTC) by RichKK

Message
Okay original poster here :)

I've been having a MUSHclient function os.execute a python command line script (xsend by xmapppy http://xmpppy.sourceforge.net/ in order to send strings captured by a trigger to my IM client (on my phone).

Is there any easy way to do this so MUSHclient doesn't hang while the xsend script runs in an external command prompt window?

 
-- ---------------------------------------

function SendMessage (msg)
msg = (msg)
os.execute ("C:\xsend.py " .. msg)
end 

-- -----------------------------------------




also I was trying to get a similar result using a command line email program (sendemail.exe) using the trigger, what am I doing wrong that I can get it to execute from MUSHclient's command window but not from a trigger?

 
msg = ("%1")

SendEmail ("-f myemail@myemailname -t targetemail@address.com -u emailsubject -m " .. (msg) .." -s SERVERIP:PORT -xu usernamen -xp password -o tls=no")



and in the script file
 
-- ---------------------------------------

function SendEmail(msg)
msg = (msg)
os.execute ("C:\sendemail.exe " .. msg)
end 

-- -----------------------------------------
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Sat 07 Jun 2008 09:09 PM (UTC)
Message
By a strange coincidence I was working on something similar yesterday, with the external status-bar executable. You want to "start" the program, like this:


os.execute ([[start "windowtitle" "C:\xsend.py" ]] .. msg)


I quoted the filename in case it ever has spaces in it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by RichKK   (33 posts)  Bio
Date Reply #5 on Tue 10 Jun 2008 06:06 PM (UTC)
Message
Everything is working perfectly now, thanks.

Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,147 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.