MUSHclient and Support for Instant Messenger Protocols

Posted by Karl_Newbie on Thu 13 Mar 2008 08:51 AM — 6 posts, 26,169 views.

USA #0
Has anyone attempted integrating MUSHclient to any degree with any of the popular instant messenger protocols, particularly the opensource XMPP aka Jabber?
USA #1
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.
USA #2
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.
#3
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 

-- -----------------------------------------
Amended on Sat 07 Jun 2008 10:29 AM by RichKK
Australia Forum Administrator #4
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.
#5
Everything is working perfectly now, thanks.